We have a .htaccess redirect that redirects from domain.com to www.domain.com. For some reason, this causes us to be unable to log into the admin panel. Any idea why this might happen or how to fix it?
We have a .htaccess redirect that redirects from domain.com to www.domain.com. For some reason, this causes us to be unable to log into the admin panel. Any idea why this might happen or how to fix it?
what redirect are you using?
-Buck
you might try this...
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301]
Good luck, hope this helps.
-Buck
Wow, that was quick
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
Also, it's on a Linux server running the newest version of Zen.
Cool! I hope that worked out for you. Post the results though so others know if it works.
-Buck
The redirect works but it still blocks me from logging into the admin.
Are you trying to enter your admin using the www. address or without?
Is there any difference if you try each approach?
What exact symptoms are you experiencing when you say "admin login fails"?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
With the www. If I got to it with out the www, it redirects to the www version.
The symptoms are that the screen simply refreshes, but does nothing. The same thing happens if I try to resent the password.
I checked those and they contain the www.