Post by a2z » Thu May 17, 2012 9:01 pm

I have created a custom 404.html page and stored it in the root of my opencart installation. When I reach a wrong url, I still get the standard opencart page not found page, not my custom 404 page. Are there any settings I need to do for this to work?

I am using a custom theme, does this effect the 404 pages?

a2z
New member

Posts

Joined
Tue May 01, 2012 9:43 am

Post by inactiveaccount9912 » Thu May 17, 2012 9:07 pm

If you want your custom not found page to be available inside opencart too, you need to create a redirect in the not_found controller in opencart.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by a2z » Thu May 17, 2012 10:58 pm

Hi Florinsith, I am not sure how to do it. Could you please help me out with the location of the files and what command I need to put in it?

a2z
New member

Posts

Joined
Tue May 01, 2012 9:43 am

Post by a2z » Thu May 17, 2012 11:13 pm

I was able to find the information in this post.
http://forum.opencart.com/viewtopic.php?f=19&t=30774

There is one mistake in the above post. the url was ending with ". It should end with single quote like below.

$this->redirect('http://www.yoursite.com/index.php');

a2z
New member

Posts

Joined
Tue May 01, 2012 9:43 am

Post by inactiveaccount9912 » Thu May 17, 2012 11:20 pm

Glad you solved it. I for one, redirected the not found to homepage like above.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by a2z » Sun May 20, 2012 2:08 pm

Hi Florinsith, when I am redirecting to my own 404 page, I am getting a page not found when I switch the currency. Can you please let me know if something is wrong?

a2z
New member

Posts

Joined
Tue May 01, 2012 9:43 am
Who is online

Users browsing this forum: No registered users and 14 guests