routing - PHP - Trouble making my cms work for sub-folders -


im trying write cms im coming across issue when comes hosting server subfolder.

for example: mysite.com/cms/index.php

im trying make automatically allocates root directory , updates css, javascript, , page links without me having change manually cant seem find solution. tried using:

define('site_root', dirname(__file__) . directory_seperator); 

but returns real path , wont work links , such.. there way can fix this?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -