Redirect subdomains to a folder on the main domain

/ Published in: Apache
Save to your folder(s)

There is a domain:
There are subdomains and is configured as a host and is located in the folder ... / www / domain /
Subdomains are aliases of the main domain - i.e. lead to the same folder ... / www / domain /
Idea: make subdomains refer to folders, inside the main domain folder, i.e. -> ... / www / domain / sd_subdomain / subdomain / -> ... / www / domain / sd_subdomain / forum /
Here is what you need to register in .htaccess


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.