I have a brief to merge two php based websites into one - where the second site is to be served in a sub-folder of the main domain rather than a subdomain.
I have set up an alias to point a particular folder to the second website.
Alias "/distribution" /path/to/second/webroot/folder/
This is working fine for .html files, but any request for a .php file in this aliased folder redirects to the main website's top level domain. Even if that php file only contains an exit('test');
e.g. a request for https://domain.com/distribution/test.html serves that HTML file.
BUT
a request for https://domain.com/distribution/test.php redirects to domain.com without touching the file.
The same alias method works fine on my local apache / php set-up.
Any ideas how to get the php files to run correctly in this scenario?
I have set up an alias to point a particular folder to the second website.
Alias "/distribution" /path/to/second/webroot/folder/
This is working fine for .html files, but any request for a .php file in this aliased folder redirects to the main website's top level domain. Even if that php file only contains an exit('test');
e.g. a request for https://domain.com/distribution/test.html serves that HTML file.
BUT
a request for https://domain.com/distribution/test.php redirects to domain.com without touching the file.
The same alias method works fine on my local apache / php set-up.
Any ideas how to get the php files to run correctly in this scenario?
Last edited by a moderator: