Hi, I have a linux server and have run into a issue.
I host 2 websites off of 1 server.
I did a 301 redirect in the .httacess file on each domain to have it redirct to the www. domain.
For example when a user goes to:
site1.com it would redirect them to <!-- w --><a class="postlink" href="http://www.site1.com">www.site1.com</a><!-- w -->
However my second domain it does not work this way, when I go to
site2.com it redirects me to <!-- w --><a class="postlink" href="http://www.site1.com">www.site1.com</a><!-- w -->
How can I get my second domain to redirect me to <!-- w --><a class="postlink" href="http://www.site">www.site</a><!-- w --> 2.com?
Here is part of my httacess file that deals with redirect for 1 domain, both are same , except where the domain name goes is changed to reflect the domain
RewriteCond %{HTTP_HOST} !^www\.site1\.com
RewriteRule (.*) <!-- m --><a class="postlink" href="http://www.site1.com/$1">http://www.site1.com/$1</a><!-- m --> [L,R=301]
Thanks in advance
I host 2 websites off of 1 server.
I did a 301 redirect in the .httacess file on each domain to have it redirct to the www. domain.
For example when a user goes to:
site1.com it would redirect them to <!-- w --><a class="postlink" href="http://www.site1.com">www.site1.com</a><!-- w -->
However my second domain it does not work this way, when I go to
site2.com it redirects me to <!-- w --><a class="postlink" href="http://www.site1.com">www.site1.com</a><!-- w -->
How can I get my second domain to redirect me to <!-- w --><a class="postlink" href="http://www.site">www.site</a><!-- w --> 2.com?
Here is part of my httacess file that deals with redirect for 1 domain, both are same , except where the domain name goes is changed to reflect the domain
RewriteCond %{HTTP_HOST} !^www\.site1\.com
RewriteRule (.*) <!-- m --><a class="postlink" href="http://www.site1.com/$1">http://www.site1.com/$1</a><!-- m --> [L,R=301]
Thanks in advance