Answer the question
In order to leave comments, you need to log in
htaccess script not working on new hosting, how to fix it?
Worked great on old hosting
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.+)\.dssaw\.ru$ [NC]
RewriteCond %{HTTP_HOST} !^www\.dssaw\.ru$ [NC]
RewriteCond %{REQUEST_URI} !^/sub
RewriteRule ^(.*) %{HTTP_HOST}$1
RewriteRule ^(.*)\.dssaw\.ru(.*) /sub/
RewriteRule ^sub\.(.*) /sub/
on new
"Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace."
I can’t understand what’s wrong, the essence of the script is simple, if there is no subdomain, we display what is in the sub/ folder of the main domain, in
total, turning to
dom.site.ru,
we display what is here
home/site.ru/sub
, that is, we don’t redirect somewhere, namely, we display the total people see it seems like a normal site dom.site.ru
pie.gg55.ru here is the same script on another hosting, in fact there is no subdomain pie and a redirect it seems like there is none, content is simply loaded from the sub folder of the main domain
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