Tuesday, 1 October 2013

htaccess go up a folder, above web root

htaccess go up a folder, above web root

I've been looking around on the internet, but i couldn't find a good
answer to this question. Since i'm very new to htaccess, i would like to
know how you would solve this problem.
On my site, a user can upload a file in directory one, which is the
webroot for the site. (index.php is here, let's say the new file is
httpdocs/site1/image.jpeg). On another site, the user should get the site
with an illusion it comes from that site. So when a user goes to
site.com/contents/image.jpeg, it should send them to site1.
How to do this? Something with rewriterule or alias?

No comments:

Post a Comment