rewrite problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

rewrite problem

Postby sydios » 14. April 2010 20:07

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...
sydios
 
Posts: 4
Joined: 27. January 2010 16:05

Re: rewrite problem

Postby Nobbie » 14. April 2010 23:02

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.
Nobbie
 
Posts: 6775
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 50 guests