Question

Locked

htaccess multiple rewrite

By kurt.foster ·
I would like to use my htaccess to file to both remove the index.php from the url and redirect all users to SSL, is this possible and how can i do it, i have tried the code below but it isn't working.

RewriteEngine On
RewriteCond %{SERVER_PORT}!443
RewriteRule ^(.*)$ https://mysite.com.au/web/directory [R]
RewriteCond $1 !^(index\.php|robots\.txt|sitemap\.xml|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L]

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums