Forum Support

Shape 5
March 28, 2024, 03:51:42 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Redirect 404 via error.php  (Read 415 times)
chlyroju
Jr. Member
**
Offline Offline

Posts: 20



« on: March 06, 2014, 12:30:05 AM »

Bonjour,
J'ai appliqu? la m?thode d?crite dans le post http://www.shape5.com/component/option,com_smf/Itemid,75/topic,32099.msg129269/#msg129269
Mais cela ne fonctionne pas !
Une mauvaise url redirige vers la page d'accueil et non vers la page 404
Pouvez-vous m'aider
Merci
Christian

Hello,
I applied the method described in the post [url]http://www.shape5.com/component/option,com_smf/Itemid,75/topic,32099.msg129269/#msg129269[/ url]
But it does not work!
Bad url redirects to the home page and not to the page 404
Could you please help me
Thank you
Christian
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #1 on: March 06, 2014, 11:31:47 PM »

Hello,

That wouldn't be part of our Template and would be customizations. Joomla has some more documentation about how to do this here if my tips didn't help.

http://docs.joomla.org/Creating_a_Custom_404_Error_Page

-Mike
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
chlyroju
Jr. Member
**
Offline Offline

Posts: 20



« Reply #2 on: March 07, 2014, 08:55:39 AM »

Merci Mike
En fait il faut utiliser ce code avec Joomla 3.0 :
Quote
if (($this->error->getCode()) == '404') {
header('Location: /index.php?option=com_content&view=article&id=239');
exit;
}

Thank you Mike
In fact you must use this code with Joomla 3.0:
Quote
if (($this->error->getCode()) == '404') {
header('Location: /index.php?option=com_content&view=article&id=239');
exit;
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #3 on: March 07, 2014, 07:21:10 PM »

Hello,

Thanks for posting your changes.

-Mike
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.