Answer the question
In order to leave comments, you need to log in
Subdomain file path, how to set?
Public_html folder for the main 2nd level domain in the hosting root
I need to create subfolders in it and assign them domains to 3rd level domains (from the main one)
I created folders, subdomains,
RewriteCond %{HTTP_HOST} ^sub_1\.site\.ru$ [NC]
RewriteCond %{REQUEST_URI} !^/sub_1.*$ [NC]
RewriteRule ^(.*)$ /sub_1/$1 [L,NS]
RewriteCond %{HTTP_HOST} ^sub_2\.site\.ru$ [NC]
RewriteCond %{REQUEST_URI} !^/sub_2.*$ [NC]
RewriteRule ^(.*)$ /sub_2/$1 [L,NS]
Answer the question
In order to leave comments, you need to log in
1. What is the control panel?
2. why do you need to create subdirectories for subdomains in the site itself, what is the logic in your opinion? why not just create them as a separate site without these tricks?
3. symlink will help you solve the problem https://linux-notes.org/sozdanie-ssy-lok-symlink-v...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question