R
R
Roddrigo2019-02-11 07:25:23
htaccess
Roddrigo, 2019-02-11 07:25:23

How to force a redirect for all devices?

Good afternoon. Please help me figure out the redirect of the site. We bought a certificate, made a redirect from http to https and it seems like everything works, BUT for some reason the redirect does not always work. Either on mobile devices, or in the opera, it’s not necessary once again. Site vmebel24.ru. The redirect was done in .htaccess. Site on ocstore 2.3.
How would I force a redirect for all devices?
My .htaccess
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://vmebel24.ru/$1 [R=301,L]
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/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]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question