title: .htaccess redirect 1 URI to SSL ( Using Query String Hiding )
body: <p>I am trying to get something to work but I am going around in circles! Basically I am wanting to forward all page requests to the main index.php file using the ?request= query string. This all works perfectly. </p>
  
  <p>However, I also want to forward all requests via https:// to http:// EXCEPT for a particular URI. It isn't working :-( Does anybody know why. I have tried all sorts of combinations from the internet. Here is the code in my .htaccess file:-</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  
  RewriteCond %{HTTP_HOST} ^example.com
  RewriteRule (.*) http://www.example.com/$1 [R=301,L]
  
  # Forward /index.php To / (without index.php)
  
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
  RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
  
  RewriteCond %{SERVER_PORT} ^443$
  RewriteCond %{REQUEST_URI} !^/this-is/my-secure-uri/?.*$
  RewriteRule (.*) http://www.example.com/$1 [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?request=$1 [L,QSA]
  </code></pre>