4
I changed my .htaccess to include this for one of my sites:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthName
http://www.kjkb.orgAuthUserFile /home/cole13/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/cole13/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_HOST} !^www\.kjkb\.org
RewriteRule (.*)
http://www.kjkb.org/$1 [R=301,L]
It works perfectly.
I tried doing the same thing to another one of my other sites I am working on:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthName
http://www.webgression.comAuthUserFile /home/webgress/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/webgress/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_HOST} !^www\.webgression\.com
RewriteRule (.*)
http://www.webgression.com/$1 [R=301,L]
This doesn't work at all. When I log onto webgression.com it gives me a string like this:
http://www.webgression.com/?PHPSESSID=3bf9a1eded2f34752cd2ee1a4f6bece5. It looks like it is giving the same information as the other site, but when I click on home it asks me to log in again.
Any suggestions on what could be wrong.
Thanks in advance.