DJCMBear Posted January 22, 2010 Share Posted January 22, 2010 Hi I was just wondering how i could do this. I have a subdomain called apps so the url would be "http://apps.mysite.com/"and everything after that goes to the index.php file so a uri like "/test-app/test.php" would go to "/index.php?app=test-app&path=%2Ftest.php" and my php code will search inside the app-files folder and look for the folder called "test-app" and look inside that for test.php. so index.php will go to this file "/app-files/test-app/test.php". i want to know if theres a .ht code that will make my server think that the folder "test-app" is the root of the site so requests like php require / include cant access any file outside that folder. If this is possible can someone please help me find away to do this, thank you =). Quote Link to comment https://forums.phpfreaks.com/topic/189489-new-root-folder/ Share on other sites More sharing options...
laffin Posted January 23, 2010 Share Posted January 23, 2010 nope, you are looking at htconf directives. htaccess is post processing of the htconf directives. Quote Link to comment https://forums.phpfreaks.com/topic/189489-new-root-folder/#findComment-1000231 Share on other sites More sharing options...
DJCMBear Posted January 23, 2010 Author Share Posted January 23, 2010 You wouldn't happen to know what i would need to write in the htconf file to make the server think the folder is the root would you? Quote Link to comment https://forums.phpfreaks.com/topic/189489-new-root-folder/#findComment-1000234 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.