Page 1 of 1

Change Behavior of href and "/"

PostPosted: 11. January 2017 20:53
by HubriSonics
Hello,

An href value of "/" takes my browser to (htdocs/index.php). How do I configure XAMPP so that "/" takes my browser to (htdocs/current-child/index.php)? Can this be done with a copy of php.ini in each child directory? Can it be done with a copy of .htaccess in each child directory?

Regards,

HubriSonics

Re: Change Behavior of href and "/"

PostPosted: 11. January 2017 21:10
by Altrea
Hi,

"/" always means "root of the currently used domain". It does not point to any file (the webserver chooses which file is used as index document).
So if you want to show "htdocs/current-child/" by "/" you simply need to use that path as DocumentRoot.

best wishes,
Altrea