Page 1 of 1

rewrite problem

PostPosted: 14. April 2010 20:07
by sydios
Hi,

i have a problem, i want that all requests to my domain are redirectet to https

like when someone types

1234.com
http://www.1234.com

goes to

https://www.1234.com

i already tryed this

Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.1234.com%{REQUEST_URI}


It kind of works, but when i try to send a form, it won't work.

thanks,

syd...

Re: rewrite problem

PostPosted: 14. April 2010 23:02
by Nobbie
sydios wrote:It kind of works, but when i try to send a form, it won't work.


Try to apply the R-Flag in the RewriteRule, which results in an external Redirect, what usually (hopefully ...) redirects POSTed data as well.