[users@httpd] [htacces] Redirect only html?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

My hoster redirects my domains to public_html/. The sites are located in
public_html/site1/
public_html/site2/
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 www.site1.com, you will be directed to
www.site1.com/site1/index.php (public_html/site1) and calling
www.site1.com/graphic (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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux