Jump to content

Apache Config: Directory spoofing, help please


gas, meet foot

Recommended Posts

I've read some .htaccess tutorials, but I'm still not quite able to achieve what I want to do.

 

I have installed a php content management system on a server in a subdirectory to root, and I want Apache to treat that subdirectory as if it were root. Example: example.com/testinstall/ should be treated as example.com/ .

 

If I edit .htaccess, I can just redirect people, but if they follow any links after the first page, the links show the true path. If I edit http.conf, to use that directory as root, then my existing urls which refer to content from root will not work.

 

Do I want to use mod_proxy for this? I have only used that in the past for masking a tomcat instance, but I suppose it would work for the path, too. Can anyone offer some advice?

 

Edit: Would URL rewriting accomplish this? I suppose the regex could just swap '/' for '/test/' ...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.