HOW TO: Set up .htaccess redirect

Last modified: February 6, 2020
You are here:
Estimated reading time: < 1 min
.htaccess redirect set up

Use the following line below in your .htaccess file:

Redirect 301 /example/test.html http://<your-new-redirect-sites>

e.g = www.newdomain.com/example/newpage.html

“Redirect 301” for a permanent redirect.

“Redirect 302” for a temporary redirect.

By default the system will choose “Redirect 302”, if it is not otherwise specified.

Was this article helpful?
Dislike 0
Views: 34