Jump to content

Strange loop error


Recommended Posts

Hmm.. looking at that code, I don't see the ending '$' in the HTTP_HOST condition line.

 

If your aim is to basically append www. to the url requested, this should work:

 

RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteRule ^(.*) http://www.domain.com/$1 [R=301,L,QSA][code]

I've not tested it, but it should work 

Link to comment
https://forums.phpfreaks.com/topic/168837-strange-loop-error/#findComment-891310
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.