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 ^(.*)$ [R]
RewriteCond $1 !^(index\.php|robots\.txt|sitemap\.xml|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L]

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums