httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lennart Aangeenbrug <>
Subject [users@httpd] [htacces] Redirect only html?
Date Mon, 12 Dec 2005 11:21:47 GMT

My hoster redirects my domains to public_html/. The sites are located in
public_html/site3/ etc
But there are also shared dir's, like public_html/graphic. Now i want to
redirect site1 to /site1, but in this way that the root still 
public_html/ is ...

So, when you enter, you will be directed to (public_html/site1) and calling (public_html/graphic) will end in that directory.
Only the index.html of a specifiec domain has to been redirected; 
another domain has to be redirected to his own directory.

The problem is, that in my htaccess file, there are different configs for
different sites. How can I adress a redirect-rule for a specific site?

redirect $file $newlocation

does not work, because the htaccess file does not know, which domain is 
adressed. So i'm looking al morning for a solution to tell the htaccess 
file that this specific redirect has only to be executed in relation to 
a specific domainname. Can someone help me?

gr, Lennart

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message