Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: .htaccess redirect makes admin login fail

    Quote Originally Posted by DrByte View Post
    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"?
    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.

    Quote Originally Posted by CJPinder View Post
    Check your admin/includes/configure.php file. You might have the non-www version of your domain name in the HTTP_SERVER or HTTPS_SERVER defines. If so, changing it to the www version should fix the problem.

    Regards,
    Christian.
    I checked those and they contain the www.

  2. #2
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: .htaccess redirect makes admin login fail

    Quote Originally Posted by jlknauff View Post
    The symptoms are that the screen simply refreshes, but does nothing. The same thing happens if I try to resent the password.
    It could be having problems setting the cookie that holds the session id. Try clearing the cookies and cache in your browser.

    Regards,
    Christian.

  3. #3
    Join Date
    Mar 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: .htaccess redirect makes admin login fail

    Hmmm...that's odd. I cleared everything from FF and now I can access the admin panel in both FF and IE even though I didn't change anything in IE. Well, it works and I guess that's all that matters for now!

    Thanks guys!

  4. #4
    Join Date
    Jan 2007
    Location
    Carlsbad, CA
    Posts
    158
    Plugin Contributions
    0

    Default Re: .htaccess redirect makes admin login fail

    Cool glad it got sorted out. Any ideas as to what it was may be helpful to others if you post.
    -Buck

  5. #5
    Join Date
    Mar 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: .htaccess redirect makes admin login fail

    In hindsight, I think what was going on was that the redirect that I had set up in the .htaccess was somehow conflicting with the Zen admin. Yours worked, but the old one was still cached. When I erased the history/cookies in FF it worked fine, but it was coincidence that IE started working because it was the next day. Since I have IE set to erase history every 24 hours, it would have worked fine if I had tried it first. Anyway, the short answer was that your change to the .htaccess fixed the problem.

  6. #6
    Join Date
    Oct 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: .htaccess redirect makes admin login fail

    Hi guys, im having the same problem but this solution hasnt worked for me.

    I know for sure its the .htaccess file thats the problem as when I remove the file I can log in admin just fine.

    This is the contents of my .htaccess file:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www
    RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301]

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    I have the first one set up to route domain.com to www.domain.com and the second one to route http:// to https:// for SSL purposes.

    I also know for sure that its something to do with the domain redirect and not the SSL redirect as ive done some testing and the SSL redirect works fine logging into admin.

    Any idea what this could be?

  7. #7
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default Re: .htaccess redirect makes admin login fail

    boardmangraham im not sure if you solved the problem you are talking about but ust for reference for anyone looking for this tread having the sae issue, try doing as suggested but also try to access your admin using the trailing slash too instead of leaving it open, this worked for me after days of searching. so the url would look like this www.yourdomain/admin/

 

 

Similar Threads

  1. v139h My recently-added .htaccess redirect rule is preventing admin login
    By joecooper in forum General Questions
    Replies: 6
    Last Post: 5 Mar 2012, 04:43 PM
  2. Can't login after adding a 301 redirect in .htaccess
    By eutopia in forum Basic Configuration
    Replies: 0
    Last Post: 11 Oct 2011, 02:27 AM
  3. Cant login to admin after 301 redirect htaccess
    By Drunkguy in forum Basic Configuration
    Replies: 7
    Last Post: 15 Jan 2010, 11:54 AM
  4. Replies: 1
    Last Post: 3 Sep 2008, 07:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg