1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

domain issues

Discussion in 'Troubleshooting and Problems' started by Temery, Jan 19, 2012.

  1. Temery

    Temery Active Member

    By chance I figured out the problem some people are having logging in. Many users have said they arrive to the site, log in, and immediately are logged out, and told to log in again.

    Bottom line: If someone arrives to my site via "www.syracusefan.com", it appears their login doesn't stick because the login defaults to "syracusefan.com".

    The simple solution is for people to only use "syracusefan.com", not "www.syracusefan.com". And knowing that a super majority of our visitors define the term "simple" ... this should solve the problem. But it won't ;-)

    Is there an idiot proof solution you can think of?

    EDIT: I just noticed that www.xenforo.com forwards automatically to xenforo.com. This seems to solve the problem here.

    Can you point me in the right direction as to how to do this for my site?

    Thank you
  2. Brogan

    Brogan XenForo Moderator Staff Member

    There are many threads explaining how to do this: http://xenforo.com/community/search/1759280/?q=www&t=post&o=date&g=1&c[title_only]=1

    Not all servers are the same though, so you may need to try a few variations before you find one which works.

    Try this thread: http://xenforo.com/community/threads/my-htaccess-file-to-redirect-non-www-to-www.8232/

    Also in the FAQ:

    How can I redirect all traffic to the www or non-www version of my site?
    If you are on an Apache server, this can be achieved by editing the .htaccess file. Refer to the discussion thread in the forum for more information.
    Note that any custom rewrite rules must come before the XenForo rewrite rules.

    MichaelDance likes this.
  3. MichaelDance

    MichaelDance Well-Known Member

    The Htaccess Brogan suggested will be the best option here however you can do this in cpanel.

    If you have cPanel go to: redirect section on the Domains section.

    Type: Permanent (301)
    http://(www.)? ** All Public Domains ** / (Leave Blank)
    redirects to→ http://syracusefan.com
    Redirect with or without www. (Tick that bullet point) Click Add
  4. Gene Steinberg

    Gene Steinberg Well-Known Member

    Just a cautionary note: Although cPanel does wonders with redirects, sometimes it flakes out (doesn't work) and you have to delete it and redo it. I've run into that issue more than once.

Share This Page