Friday, November 20, 2009

How do I make my .htaccess document send 2 different domains to 2 different folders?

Here is what I have done, but its not working: Please keep in mind that I cannot make thext look "pretty" for some reason because of the code:



#BEGIN REDIRECT CODE



RewriteEngine On



Options +FollowSymlinks



RewriteBase /



RewriteCond %{HTTP_HOST}



theiconmaker.com



RewriteCond %{REQUEST_URI} !tim/



RewriteRule ^(.*)$ tim/$1 [L]



# END OF REDIRECTION CODE



Options



+Indexes



IndexOptions -FancyIndexing



RewriteEngine On



Options +FollowSymlinks



RewriteBase /



RewriteCond %{HTTP_HOST} scalesandrhythm.com



RewriteCond



%{REQUEST_URI} !snr/



RewriteRule ^(.*)$ snr/$1 [L]



# END OF REDIRECTION CODE



Options +Indexes



IndexOptions



-FancyIndexing"""""



How do I make my .htaccess document send 2 different domains to 2 different folders?microsoft exchange



Hello,



if I understand your question correctly u want this:



theiconmaker.com pointing to a folder called "tim"



scalesandrhythm.com pointing to a folder called "snr"



and here is a few things you can try:



1. Check that mod_rewrite is supported on your host.



2. Tell us the version of your apache server - 1.x or 2.x.



3. Change the place of this line "Options +FollowSymlinks" or remove it:



from



RewriteEngine On



Options +FollowSymlinks



to



Options +FollowSymlinks



RewriteEngine On



4. Try this code :



#BEGIN REDIRECT CODE



Options +FollowSymLinks



RewriteEngine On



RewriteCond %{HTTP_HOST} ^(www\.)?theiconmaker\.com$ [NC]



RewriteRule !^tim(/.*)?$ /tim%{REQUEST_URI} [QSA,L]



RewriteCond %{HTTP_HOST} ^(www\.)?scalesandrhythm\.com$ [NC]



RewriteRule !^snr(/.*)?$ /snr%{REQUEST_URI} [QSA,L]



# END OF REDIRECTION CODE

No comments:

Post a Comment

 
c++