problems with login with www and without it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EHM
    Member
    • Sep 2005
    • 36
    • 4.1.x

    [Forum] problems with login with www and without it

    I just realized that if I log in on my forum calling
    For affordable website hosting packages, go to MySite.com. You'll find complete and reliable website hosting with a range of prices and options.

    the login goes just fine
    if I call
    For affordable website hosting packages, go to MySite.com. You'll find complete and reliable website hosting with a range of prices and options.

    I'm cant log in.
    then, if I just add the www and hit enter, I'm log in.
    so I'm assuming is a cookies issue.
    My site has the cookies set to '/' only.

    then, when I log off, it log's off, but if I just add www at the address bar, I'm log in again.
    looks like cookies are not being cleared.

    how to fix it?

    thank you
  • Andy
    Senior Member
    • Jan 2002
    • 5886
    • 4.1.x

    #2
    Here is the fix. You want to have .htaccess to automatically change the non-www to a www url.

    Code:
    RewriteEngine on
    rewritecond %{http_host} ^mysite.com [nc]
    rewriterule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]

    Comment

    • EHM
      Member
      • Sep 2005
      • 36
      • 4.1.x

      #3
      I did the fix Andy suggest and was not change on the erratic behavior.
      still, when a user log in, and click SUBMIT, the next screen is an error page:
      Invalid Redirect URL (http://www.MySITE.com/forums/)

      note that the user inicial page was http://MySITE.com/forums (no www)

      What else that could be?

      Comment

      • Trevor Hannant
        vBulletin Support
        • Aug 2002
        • 24358
        • 5.7.X

        #4
        What do you have set in AdminCP > Settings > Options > Site Name / URL / Contact Details > Forum URL? The www or non-www version of the domain?

        If the non-www version, ensure that's got www in there
        Vote for:

        - Admin Settable Paid Subscription Reminder Timeframe (vB6)
        - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

        Comment

        • Andy
          Senior Member
          • Jan 2002
          • 5886
          • 4.1.x

          #5
          Originally posted by EHM

          note that the user initial page was http://MySITE.com/forums (no www)
          The .htaccess you created is not working. Ask your web hosting company to make the .htaccess work properly. There should never be a a condition where there is no www because the .htaccess file will immediately add the www part if .htaccess is working correctly.

          Comment

          • EHM
            Member
            • Sep 2005
            • 36
            • 4.1.x

            #6
            @Trevor
            I went to AdminCP > Settings > Options > Site Name / URL / Contact Details > Forum URL?
            and included WWW there (wasn't ) reset the browser, try again
            and still receiving this error message:
            vBulletin Message

            Invalid Redirect URL (http://MYSITE.com/forums/)

            @Andy,
            I checked with my hosting and the .htaccess is working fine.
            The site resolves in either way, with or without the WWW.
            it's something internal on vBulletin.
            Something on the settings. but where??

            Comment

            • Trevor Hannant
              vBulletin Support
              • Aug 2002
              • 24358
              • 5.7.X

              #7
              Can you try re-downloading the ZIP file from the Members Area and re-upload all files (except install/install.php and includes/config.php.new) making sure you overwrite all files currently on your server.

              Does this resolve the problem?
              Vote for:

              - Admin Settable Paid Subscription Reminder Timeframe (vB6)
              - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

              Comment

              Related Topics

              Collapse

              Working...