johnsmith153 Posted May 19, 2012 Share Posted May 19, 2012 I want to make all urls go to: https://www.domain.com/page/var1/var2/ etc. (with all to https and all with trailing slash). Also, I want index.php to receive all requests, despite the url being /page/variable/variable2 etc. I have this, but none of it works. I must be doing something wrong. RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^domain.com RewriteRule (.*) http://www.domain.com/$1 [R=301,L] RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L,NS] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.