I am trying to make a Permanent redirection for one file to another domain. http://www.website1.com/file.php?randomparameters --> http://www.website2.com/file.php?randomparameters How can I do this? It is for one file only. (index.php)
You will need to setup a 301 Redirection. It is pretty easy. This must help you: http://www.noob2geek.com/webmasteri...age-with-301-redirection-using-htaccess-file/ It has a very brief tutorial on how to do it.
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !olddomain.com$ [NC] RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]