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?
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.
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');
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');
Who is online
Users browsing this forum: No registered users and 14 guests