A
A
Alexey Semenyuk2015-09-16 14:48:01
htaccess
Alexey Semenyuk, 2015-09-16 14:48:01

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

1 answer(s)
S
ShamblerR, 2015-09-16
@ShamblerR

Doesn't this bullshit bother you? RewriteRule ^(.*) %{HTTP_HOST}$1

10
20 GOTO 10

and by the way, this one? RewriteRule ^(.*)\.dssaw\.ru(.*)/sub/
Why don't you have any redirect status?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question