MyBB Community Forums

Full Version: set this on htacces
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
guys im using google seo. Any help how to use a "www." on starting before my domain name? I got error. It says to many loop. How to set it to have a www. On the start
	RewriteCond %{HTTP_HOST} !^www.domain.com [NC]
	RewriteRule ^(.*)$ http://www.domain.com%{REQUEST_URI} 
still desame


This webpage has a redirect loop
The webpage at http://mysite.com/Forum-Announcements--2 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
post up your htaccess file
(2012-10-10, 04:18 AM)pavemen Wrote: [ -> ]post up your htaccess file

Here. Thanks
this is your problem

RewriteCond %{HTTP_HOST} ^phden.com
   RewriteRule ^([^&]*)&(.*)$ http://www.phden.com/$1?$2 [L,QSA,R=301]

you are accepting the wildcard subdomain and redirecting it back to www, which is getting redirected again.

replace this part with what I posted above which tests if it is NOT www then redirect. to www
ok ill try. Ill be back on this thread later but i will leave a reputation for you

its working now thank you bro