![]() |
| ||
| .htaccess - remove www. except when https Hello, I am trying to remove the www. at the beginning of our domain name via .htaccess. I'm doing it like this: RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]It seems to word wonderfully.I would like to retain the www. when someone accesses the site securely with https. I found a bit of code on the web that described how to force the www. except on a certain folder ("blog" in this case): RewriteCond %{HTTP_HOST} !^$I thought if I changed it a little, I could make at least a single folder keep the www. like this: RewriteCond %{HTTP_HOST} !^$It didn't work. I got a redirect loop error. Any ideas? |
| All times are GMT -4. The time now is 4:04 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC