Answer the question
In order to leave comments, you need to log in
How to correctly implement a subdomain directory in .htaccess?
There is such an entry in .htaccess:
# /admin/-> admin.site.com
RewriteRule ^admin - [L]
RewriteCond %{HTTP_HOST} (www.)?admin.site.com [NC]
RewriteRule (.*) admin/$1 [L]
RewriteEngine On
RewriteCond %{REQUEST_URI} !\&
RewriteCond %{REQUEST_URI} !\=
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_URI} !\/$
RewriteRule ^(.*[^\/])$ /$1/ [R=301,L]
What is the problem and how to fix it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question