Redirect 301 via configuration in .htaccess

Created by Robin Hoang, Modified on Tue, 04 Dec 2018 at 11:38 AM by Robin Hoang


We have two website that we are redirecting the user based on his geo location between them:
USA & Canada: https://domain/usa/
Other: https://domain/global/
Everything is working just fine.
But, after a while, we have some 404 pages that I have an issue when I want to create 301 redirection using htaccess for them.
For example, I have this 404 page: https://domain/usa/producta, I want to redirect the user to this page: https://domain/usa/ by editing the htaccess file, How should I do?


You need to add code redirect to file /home/ids/public_html/.htaccess and then, set the config:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article