Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1

    Default Cannot login after setting 301 redirect in htacccess file

    Hi

    I've just recently upgraded to version 1.3.9h and I'd like to set a 301 redirect so all my traffic goes to my www site but whenever I add the following lines to my htaccess file I cannot login, it doesn't accept my password? can anyone help? I have the Ceon URL mapping addon.

    The lines I added are :

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^comra-therapy.co.uk$
    RewriteRule ^(.*)$ http://www.comra-therapy.co.uk/$1 [R=301,L]

    Ralph Stirrat
    Nursing Uniforms

  2. #2
    Join Date
    Dec 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Cannot login after setting 301 redirect in htacccess file

    i have the same issue..was working fine before

  3. #3
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,128
    Plugin Contributions
    0

    Default Re: Cannot login after setting 301 redirect in htacccess file

    Try this:

    RewriteEngine ON

    ## Rewrite / Redirect all requests to use 'www' in URL
    RewriteCond %{HTTP_HOST} ^domain\.com [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,NC,L]

    or this

    RewriteEngine ON

    ## Rewrite / Redirect all requests to use 'www' in URL
    RewriteCond %{HTTP_HOST} ^domain\.com(.*)
    RewriteRule ^(.*)$ http://www\.domain\.com/$1 [R=301,L]


    One of them should work for you.
    The learning is in the doing.

    Potent Products

  4. #4

    Default Re: Cannot login after setting 301 redirect in htacccess file

    Hi Rob

    Thanks for your reply, I tried both options and they didn't help though.

    Any other suggestions? can I use the debug error logging?

    Ralph
    Ralph Stirrat
    Nursing Uniforms

  5. #5
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,102
    Plugin Contributions
    2

    Default Re: Cannot login after setting 301 redirect in htacccess file

    Try:

    Options +FollowSymLinks
    RewriteEngine = On

    Vger

  6. #6

    Default Re: Cannot login after setting 301 redirect in htacccess file

    Quote Originally Posted by Vger View Post
    Try:

    Options +FollowSymLinks
    RewriteEngine = On

    Vger
    This didn't do the redirect for non-www
    Ralph Stirrat
    Nursing Uniforms

  7. #7
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,102
    Plugin Contributions
    2

    Default Re: Cannot login after setting 301 redirect in htacccess file

    That was meant to be in addition to the earlier code posted, as in:

    Code:
    Options +FollowSymLinks
    RewriteEngine = On
    
    ## Rewrite / Redirect all requests to use 'www' in URL
    RewriteCond %{HTTP_HOST} ^domain\.com(.*)
    RewriteRule ^(.*)$ http://www\.domain\.com/$1 [R=301,L]
    Do you have any other rewriting taking place e.g. for Ultimate SEO URLs?

    Vger

  8. #8

    Default Re: Cannot login after setting 301 redirect in htacccess file

    Hi Vger

    I tried your suggestion but it still didn't work, I do have Ceon URL mapping installed.
    Ralph Stirrat
    Nursing Uniforms

  9. #9
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Cannot login after setting 301 redirect in htacccess file

    Hi Ralph,

    Quote Originally Posted by RalphStirrat View Post
    I tried your suggestion but it still didn't work, I do have Ceon URL mapping installed.
    Have you set up the domain name in your includes/configure.php file to be www.comra-therapy.co.uk?

    If not, Zen Cart will build links to comra-therapy.co.uk which your .htaccess file will redirect to www.comra-therapy.co.uk, destroying the POST data and making it impossible to log in.

    Hope that helps...

    Conor
    ceon

  10. #10

    Default Re: Cannot login after setting 301 redirect in htacccess file

    Hi Conor

    I had set the configure files to be without the www so I turned off the Ceon module and changed both configure files to www. but I was still not able to login?

    Would I have to uninstall the Ceon module?

    Thanks for all the help.

    Ralph
    Ralph Stirrat
    Nursing Uniforms

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Join and Login Redirect setting??
    By touchclothing in forum General Questions
    Replies: 1
    Last Post: 28 Apr 2010, 08:01 PM
  2. Login Link - Can I redirect to My Account after login?
    By perkiekat in forum General Questions
    Replies: 2
    Last Post: 3 Feb 2010, 01:34 AM
  3. Config File and Parameter for URL Change/Redirect
    By sweber in forum General Questions
    Replies: 5
    Last Post: 11 Apr 2009, 05:08 AM
  4. trying to set up a 301 redirect by editing .htaccess file
    By eggrush in forum General Questions
    Replies: 4
    Last Post: 7 Mar 2009, 02:38 PM

Bookmarks

Posting Permissions

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