Forum Moderators: phranque
I am trying to redirect non www to WWW pages. I have done it successfully using the below code. However, all my Frontpage Forms stop working. Does anyone know of a workaround for this? Here is the code I am using:
# -Redirect non-www to the www domain name-
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
However, when I add this code, the Frontpage forms stop working. Here is the front page code that is in the htaccess file as well:
# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.site.com
AuthUserFile /home/brigh/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/brigh/public_html/_vti_pvt/service.grp
Can I have both using Frontpage? Is their a different way to go about it?
[edited by: jdMorgan at 1:44 am (utc) on Dec. 10, 2005]
[edit reason] Example.com [/edit]
with this:
RewriteCond %{HTTP_HOST} !^www.example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R,L]
[edited by: jdMorgan at 1:45 am (utc) on Dec. 10, 2005]
[edit reason] Example.com [/edit]