My forms on apache do not post when the mod rewrite is enabled. This is a problem because I'm trying to prevent duplicate content, but want the www included. I've seen a post here where the person went the opposite way (without a wwww), but I don't want that.
I'm using this, which works fine, but prevents a form submission from going through. The error message is: You are not allowed to access this URL directly, POST array is empty
RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ [NC]
#RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
I'm using this, which works fine, but prevents a form submission from going through. The error message is: You are not allowed to access this URL directly, POST array is empty
RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ [NC]
#RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]