Forum Moderators: phranque
http://example.com/home/login.html
POST /home/login.html HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: PPv82868=ti%3D1347453695%3Brc%3D3; PHPSESSID=b10qi7p61ndjh5k1rf1ab67oo0
Content-Type: application/x-www-form-urlencoded
Content-Length: 53
user_id=admin&password=admin&language=EN&submit=
HTTP/1.1 301 Moved Permanently
Date: Thu, 27 Sep 2012 09:13:37 GMT
Server: Apache
Location: [example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 206
Connection: close
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[example.com...]
GET /home/login.html HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: PPv82868=ti%3D1347453695%3Brc%3D3; PHPSESSID=b10qi7p61ndjh5k1rf1ab67oo0
HTTP/1.1 200 OK
Date: Thu, 27 Sep 2012 09:13:39 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 1194
Connection: close
Content-Type: text/html
----------------------------------------------------------
<form id="homepage-login-form" action="http://example.com/home/login.html" method="post">
<p>
<label for="user_id">USER-ID</label>
<input name="user_id" type="text" />
</p>
<p>
<label for="password">PASSWORD</label>
<input name="password" type="password" />
</p>
<p>
<label for="language">LANGUAGE</label>
<select name="language">
<option value="EN">English</option>
<option value="NL">Netherlands</option>
</select>
</p>
<p id="remember-me">
<label for="remember_me">REMEMBER ME</label>
<input name="remember_me" type="checkbox" />
</p>
<p>
<input id="login-btn" type="submit" value="" name="submit" />
</p>
</form>
RewriteEngine On
RewriteRule ^(.*).html$ index.php?set=$1
RewriteCond %{HTTPS} off
RewriteRule ^ [%{HTTP_HOST}%{REQUEST_URI}...] [L,R=301]
RewriteRule ^(.*).html$ index.php?set=$1
The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD
RewriteCond %{HTTPS} !=on
RewriteEngine On
RewriteRule ^(.*).html$ index.php?set=$1
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ [%{HTTP_HOST}%{REQUEST_URI}...] [R=301,L]
RewriteRule ^(.*).html$ index.php?set=$1