ma
masrnet
#1
hello everyone
I want to redirect subdomains to subfolders with same name
and add the following configuration in vhosts file
<VirtualHost other.example.com:443>
ServerAlias *.example.com
VirtualDocumentRoot "/home/example.com/sites/%1/"
<Directory "/home/example.com/sites/%1/">
Options All
AllowOverride All
order allow,deny
allow from all
</Directory>
</VirtualHost>