Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htacess question

Status
Not open for further replies.

idtstudios2

Programmer
Aug 12, 2005
35
US
My host does not allow multiple domain hosting. However, they do allow for unlimitted domain parking. I have been succesfully using the following htaccess in my root folder to get around the lack of multiple domains for several months. Then about a week ago I needed to use htacces for one of my *rigged* domains. I was not able to get htaccess to work properly on any of the domains in the root htaccess.

The problems seemed to appear only when I wanted to do something like rewrite:

links/34424

links.php?id=blahblahblah

Could someone please take a look at the htaccess below and see if i'm missing something?

Thanks in advance





RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteCond %{HTTP_HOST} site1.com
RewriteCond %{REQUEST_URI} !site1/
RewriteRule ^(.*)$ site1/$1 [L]

RewriteCond %{HTTP_HOST} site2.com
RewriteCond %{REQUEST_URI} !site2/
RewriteRule ^(.*)$ site2/$1 [L]
 
Your host does not allow multiple domains and you want help overriding their policies?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top