redirection question

Ask your mod_rewrite and Redirection questions here, and get answers!

redirection question

Postby murkis » 22 May 2008 18:36

I'm having a hard time understanding .htaccess' mod_rewrite. Could someone help me with this problem...

I have a document root in /home/user/public_html/
I have 3 domains pointing there: http://www.domain[1|2|3].com

I want to transfer all of these domains to /home/user/public_html_2/

I cannot modify virtual hosts in apache's configs so i can only do it with .htaccess. So if i had a file /home/user/public_html/files/1.gif that was accessible by http://www.domain[1|2|3].com/files/1.gif - now i want this file to be located in /home/user/public_html_2/files/1.gif and accessed with exactly the same url.

Thanks for your help
murkis
 
Posts: 1
Joined: 22 May 2008 18:29

Return to Redirect or Rewrite Questions



Who is online

Users browsing this forum: Acennasnacrah, RombNeore