gas, meet foot Posted April 24, 2008 Share Posted April 24, 2008 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/' ... Link to comment https://forums.phpfreaks.com/topic/102820-apache-config-directory-spoofing-help-please/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.