Jump to content

How to directly redirect to 404 error page when enter the wrong url in prestashop 1.7?


Kamlesh Gupta

Recommended Posts

Currently when i enter the wrong URL for example https://www.example.com/1234 then it redirect to 302 and then redirect to 404 page.

I need to directly redirect to 404 error page for SEO purpose.

I have also tried with below solution in htaccess.

If rewrite mod isn't enabled

ErrorDocument 404 /index.php?controller=404

Please help me with solution.

Thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...