Jump to content

New Root Folder


DJCMBear

Recommended Posts

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 =).

Link to comment
https://forums.phpfreaks.com/topic/189489-new-root-folder/
Share on other sites

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.