06/09/2010 23:02:39
Sun, 2010-02-07 13:57
howto to use the redirect 301 with a full change in the domain name
What happens if you completely change your domain name from www.old-domain.com to www.new-domain.com?In this case it is important to inform the search engine of the change.The best solution is to redirect the request to the new url with a 301 code. How?
- Solution 1 (the best) for those of you who have access to the apache configuration file.We must check that tje mod_rewrite module in apache is enabled.In a ubuntu instalation you will find the file old-domain.conf in the directory /etc/apache2/sites-available/In that file add the following lines:RewriteEngine onRewriteRule (.*) http://www.new-domain.com/$1 [R=301,L]This will redirect in a clean way, your users and the search engines to the new domain.
Post new comment