Welcome Guest, Not a member yet? Register   Sign In
.htaccess to force http using https and still get rid off index.php etc.
#3

[eluser]searain[/eluser]
I tried that. It would not work. Give me 403 error.

I think I would have to dig deep about how to apply multiple rewrite rule.

If I switch the order

RewriteEngine On

RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

I wouldn't get 403 error, and http is redirected to https, but index.php showed up too.


Messages In This Thread
.htaccess to force http using https and still get rid off index.php etc. - by El Forum - 06-19-2011, 07:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB