Hey everyone. I have a server with Apache, it's Linux powered. I'm looking to setup an HTACCESS file that will allow the use of subdomains. Say I wanted them to be able to visit any subdomain.mywebsite.com, I'd like it to point to the same file, index.php. Anyone have any idea how to do this?
In your Apache config just point all subdomains to the same directory. With a little PHP you can pull of which subdomain is being hit if that is needed. $_SERVER["SERVER_NAME"] PHP:
I'm trying to make it so ANY SUBDOMAIN will point to it. Is there a place in the config file where I can make ANY SUBDOMAIN go to the directory?