PHP Code:
# Needed before any rewriting
RewriteEngine On
### Built using the .htaccess 301 Redirect Generator from Web Site Advantage
### https://websiteadvantage.com.au/HtAccess-301-Redirect-Generator
### Place after 'RewriteEngine On' and before any CMS specific rewrite rules
# Redirect HTTP with www to HTTPS with www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Redirect HTTP without www to HTTPS with www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Redirect HTTPS without www to HTTPS with www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^idtagsonline\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.idtagsonline\.com$
RewriteRule ^store\/?(.*)$ "https\:\/\/www\.idtagsonline\.com\/$1" [R=301,L]
I checked code above on another domain and have the same result.
Redirect is working right, but Zen Cart login to Admin stops working.
There is some kind of conflict.
By removing this code from .htaccess login became normal.
Can anybody see what it can be?
Bookmarks