The Arcive of vBulletin Modifications Site. |
|
Redirect Help (httaccess) Details »»
|
|||||||||||||||||||||||||
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 www.site1.com However my second domain it does not work this way, when I go to site2.com it redirects me to www.site1.com How can I get my second domain to redirect me to www.site 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 :P Code: RewriteCond %{HTTP_HOST} !^www\.site1\.com RewriteRule (.*) http://www.site1.com/$1 [L,R=301] Thanks in advanced Clarify: They are in diffrent dircetories. Site 1 is in /root/home/site1/public_html/ site 2 is in /root/home/site2/public_html/ each site has its own htttpaccess, so which one do I edit or do I have this all setup wrong? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
post your .htaccess for both domains.
|
|
#3
|
|||
|
|||
|
Here, I use VBSeo btw
Quote:
The other httacees is exactly same excet site1=site2 |
|
#4
|
||||
|
||||
|
Quote:
why you do not make a request to VBSEO support? Best regards |
|
#5
|
|||
|
|||
|
Ill note this u have the line commented.
|
|
#6
|
|||
|
|||
|
yes i know i just did that for testing because the domains were acting all funky and they still are even after i commented it out.
for somereason site2.com still goes to www.site1.com even tho changes are gone. is there some file in ROOT that maybe causing this issue? |
|
#7
|
|||
|
|||
|
Have you checked the config files for your different sites inside apache? Is it possible u put in the wrong folder location on the server.
|
![]() |
|
|