What is the best format to put in the .htaccess file for a permanent 301 redirect from one website to another website please?
I don’t know about optimum, but this will do the job assuming the directory structure is the same in both domains.
RewriteEngine On RewriteRule ^(.*)$ http://www.new-domain.com/$1 [R=301,L]
May I suggest using 302 instead of 301 because the latter is permanent and once set cannot be revoked whereas the former is temporary.
Once the redirection is doing what you want it to do then replace the 302 with 301.
I have the T-shirt
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.