If anyone can help me with this I would greatly appreciate it.
My folder structure looks like this:
- Code: Select all
public_html / app
/ public / files
/ otherdirs
/ subd / dirforeachsubdomain
Currently my .htaccess file in public_html re-routes all requests to public_html/index.php, UNLESS it points to a valid file that does not have the extension ".php".
In my .htaccess file in "app", I have it re-routing to public_html/index.php no matter what the request is.
I would like to do the same to "subd" because each folder in there will be a sub-domain, and don't want it accessible from "site.com/subd/folder/"
However, to get that to work, the result of requesting "subdomain.site.com" results in a 500 Internal Server Error!
Any advice that will resolve this problem I will be very grateful for!
Cheers, mniz.