Jump to content
Kamlesh Gupta

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

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.

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More