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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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