Results 1 to 5 of 5

Not Able To Login without the WWW.

This is a discussion on Not Able To Login without the WWW. within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I'm having this problem with VBSEO , if you try to login thru http://domain.com/forum/ It will not work, it will ...

  1. #1
    Senior Member
    Real Name
    George
    Join Date
    May 2006
    Posts
    134
    Liked
    0 times

    Not Able To Login without the WWW.

    I'm having this problem with VBSEO, if you try to login thru http://domain.com/forum/
    It will not work, it will say "thank you for logging in" and then redirects you to the the same http://domain.com/forum/

    But if you just add the www. to the URL it will work, theres no need to login in again, you are already logged thanks to the first "failed" try.
    If you go to http://www.domain.com/forum/ you will login normally, but if you remove in any moent the www., you will be asked to login again.

    I just deactivated the VBSEO and the problem is gone.

    Please help!

    Thanks!!

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Add this to the .htaccess in your SITE root:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.domain\.com 
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    And add this to the top of the .htaccess in your FORUM root, under the RewriteEngine On line:
    Code:
    RewriteCond %{HTTP_HOST} !^www\.domain\.com 
    RewriteRule (.*) http://www.domain.com/forum/$1 [R=301,L]
    This will ensure that everyone visiting your site is using www.domain.com and not domain.com. (Which is what you want for better SEO anyway; a single URL.)

  3. #3
    Senior Member
    Real Name
    George
    Join Date
    May 2006
    Posts
    134
    Liked
    0 times
    Impressive tech support!!

    Fixed!!!

    Thanks a lot!!!

  4. #4
    Sim
    Sim is offline
    Junior Member
    Real Name
    Simon Hampel
    Join Date
    May 2006
    Location
    Sydney, Australia
    Posts
    13
    Liked
    0 times
    FYI - I had this exact same problem after my webhost upgraded to Apache 1.3.36 on my server tonight.

    Turning vBSEO off fixed the problem ... so we figured it was something about the vBSEO config interacting with the new Apache config.

    The solution suggested worked perfectly.

    Might want to write a FAQ, and perhaps make that the default config for the htaccess file ?

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    The FAQ entry is a great idea, but we cannot make it default in .htaccess file since everyone have their own domain names.

Similar Threads

  1. Redirecting non-www to www version
    By DN lodge in forum General Discussion
    Replies: 2
    Last Post: 03-16-2008, 11:47 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
  •