Home htaccess RewriteRule _route_=$1 https
Reply: 0

htaccess RewriteRule _route_=$1 https

user1015 Published in August 15, 2018, 11:15 am

I have inherited support for an Opencart 1.5 site which needs to have SSL enabled.

I've edited the config.php files in / and admin/ and adding https:// to the URL is working in the browser and links are being generated with https

However, whatever method of an htaccess redirect I try seems to result in the site not loading.

The following is in the htaccess file and I suspect the problem is related to the last line here with route which I've not seen before.

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Any suggestions on how I can add https to this RewriteRule?


You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.298623 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO