is there a way to redirect all specified subdomains to a specific local folder? like this:
I want to attach a subdomain to a local folder but the domain is the wildcard (can be anything) this domain will be used as a folder name. example:
- Code: Select all
blog.* -> /home/www/blogs/*
so it goes like this:
blog.example.com -> /home/www/blogs/example.com
blog.blabla123.com -> /home/www/blogs/blabla123.com
I am using apache2, so I can edit the configs or create a .htaccess?
any ideas? Thanks.