Hi All,
Normally in seo domain two domain names should not go to the same website.
Even with out http://www.example.com and http://example.com will also take as the 2 domain names.
We have to give 301 redirection to the particular domain in apache itself.
I think the following code will help you to do the thing in ubuntu.
$ sudo a2enmod rewrite
then in apache conf add the following lines
Now restart it and check
$ sudo service apache2 restart
{"Thanks"="Ramanavel Selvaraju"}
Normally in seo domain two domain names should not go to the same website.
Even with out http://www.example.com and http://example.com will also take as the 2 domain names.
We have to give 301 redirection to the particular domain in apache itself.
I think the following code will help you to do the thing in ubuntu.
$ sudo a2enmod rewrite
then in apache conf add the following lines
Now restart it and check
$ sudo service apache2 restart
{"Thanks"="Ramanavel Selvaraju"}
No comments:
Post a Comment