Hi, I'm trying to redirect an old website to the new domain, the files are in the same place on the server. The old domain (not actual!) was something.example.co.uk/ The new one is "www.something.org"for example. I believe I need a 301 redirect but i'm not sure how to write the code. Any help please!! many thanks, Martyn
You can set up redirection code via .htaccess file. Simply use below code in your .htaccess file: Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^something.example.co.uk [nc] rewriterule ^(.*)$ http://www.newdomain.com/$1 [r=301,nc]
Login to your domain account panel and forward the old domain to the new domain.. simple as 1.. 2... 3.... or use .htaccess option as Janka said if you have hosted your old domain somewhere.