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

The content of this field is kept private and will not be shown publicly.
                                                      
88
88
88
8b,dPPYba, 8b,dPPYba, 8b,dPPYba, 88,dPPYba,
88P' `"8a 88P' "Y8 88P' "Y8 88P' "8a
88 88 88 88 88 88
88 88 88 88 88 88
88 88 88 88 88 88

Enter the code depicted in ASCII art style.
Nid: 30| XHTML | CSS | 2010 Log In
Disclaimer: The information and content provided on this website is for reference and informational purpose only. We cannot guarantee for accuracy and completeness for any information or content published on this site. Use of the information and content on this site is at your own risk. We accept no responsibility for any loss or damage arising from the use of this website either directly or indirectly.