Hi, I know how to write 301's redirect 301 /links.php http://www.xxxx.org/newlinks.php But how do i write the 'old url' as a 301? Example: redirect 301 http://www.oldsite.com http://www.newsite.com Will the above work?
hi darrens Create a .htaccess file with the below code, Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] all your directories and pages of your old domain will get correctly redirected to your new domain through the above code. The .htaccess file needs to be placed in the root directory of your old website where your index file is placed Please replace www.newdomain.com in the above code with your actual domain name. In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website. Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled. For Windows hosting, put the below give code into web.config so you can update it without having to recompile the site. <appSettings> <add key="primaryDomain" value="http://www.abc.com"/> </appSettings> Hope this will help