I always used the following rule to manage urls:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^.*$ ./urlredirect.php
With this I could easily check with php which page the user was trying to access.
Now I got a site that requires https on all pages. Here is the basic solution to this:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
My problem now is that I cannot get both working simultaneously. I know very little of mod-rewrite and regular expressions.
Any help would be greatly appreciated.