Skip to:
Content
Pages
Categories
Search
Top
Bottom

login


  • mcmc
    Member

    @mcmc

    when I login to my forum (WWW.investorsbuzz.com/forum_) and then again back to my home page, and click my link to forum, which directs me to http://investorsbuzz.com/forum, (without WWW), I am not logged in anymore. If I however enter the ‘www’ again in the URL I am loged in again. Unfortunately I dont know how to change the forum link to include the ‘www’ in the url, since its the address of a wordpress page. Is there another fix to keep me logged in?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Put this in your .htaccess file at the public_html level:

    # Getting rid of the WWW in front
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.investorsbuzz.com [NC]
    RewriteRule ^(.*)$ http://investorsbuzz.com/$1 [L,R=301]

    If you have wordpress info in that file, put this BEFORE the WP stuff.

    Ugh and there’s a bug in put $1 right after the / in http://investorsbuzz.com/

    I don’t know why that’s happening. See http://yfrog.com/eahtaccessg


    mcmc
    Member

    @mcmc

    doesn’t seem to work, looks like this now (see http://investorsbuzz.com/forum_)

    I added the code at the beginning:

    # Getting rid of the WWW in front

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^www.investorsbuzz.com [NC]

    RewriteRule ^(.*)$ http://investorsbuzz.com/ [L,R=301]

    RewriteEngine On

    RewriteBase /

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteRule ^(.*/)?avatar/(.*) wp-content/avatar.php?file=$2 [L]

    RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [L]

    RewriteRule ^(.*/)?global-posts-feed/(.*) wp-content/recent-global-posts-feed.php [L]

    # add a trailing slash to /wp-admin

    RewriteCond %{REQUEST_URI} ^.*/wp-admin$

    RewriteRule ^(.+)$ $1/ [R=301,L]

    Also: what do you mean with

    Ugh and there’s a bug in put $1 right after the / in http://investorsbuzz.com/

    Thanks!

    Well yeah, it’s not working :)

    Look at this picture: http://yfrog.com/eahtaccessg

    You’ll see what I mean about $1

    http://investorsbuzz.net/<PUT THE $1 HERE>

    I can’t get the link to work right :/


    mcmc
    Member

    @mcmc

    I see. I put the $1 there, still not working, header image disappeared now. maybe I am using the wrong htaccess file? or the wrong position?

    # Getting rid of the WWW in front

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^www.investorsbuzz.com [NC]

    RewriteRule ^(.*)$ http://investorsbuzz.com/$1 [L,R=301]

    RewriteEngine On

    RewriteBase /

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteRule ^(.*/)?avatar/(.*) wp-content/avatar.php?file=$2 [L]

    RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [L]

    RewriteRule ^(.*/)?global-posts-feed/(.*) wp-content/recent-global-posts-feed.php [L]


    mcmc
    Member

    @mcmc

    I just realized, I actually don’t want to get rid of www, I want to add it.. cause with http://www.investorsbuzz.com/fourm_ I stay logged in


    mcmc
    Member

    @mcmc

    just tried this instead, but also no luck

    # Getting rid of the WWW in front

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^investorsbuzz.com/forum_ [NC]

    RewriteRule ^(.*)$ http://www.investorsbuzz.com/forum_/$1 [L,R=301]


    mcmc
    Member

    @mcmc

    I could also no login anymore, therefore I removed the code.

    maybe this info is helpful:

    as soon as I log in at http://investorsbuzz.com/forum_/bb-login.php

    it changes to http://www.investorsbuzz.com/forum_/


    mcmc
    Member

    @mcmc

    It doesn’t seem to work, now my homepage is not displaying anymore

    I added this to the htaccess file at the top

    RewriteEngine on

    RewriteCond %{HTTP_HOST} !^www.investorsbuzz.com$

    RewriteRule ^(.*)$ http://www.investorsbuzz.com/$1 [R=301]

    Then I tried this:

    RewriteEngine on

    RewriteCond %{HTTP_HOST} !^www.investorsbuzz.com/forum_$

    RewriteRule ^(.*)$ http://www.investorsbuzz.com/forum_/$1 [R=301]

    both no success


    aditya.2311
    Member

    @aditya2311

    I am also facing the problem related to login. I have installed both wordpress blog and bbpress forums. But on integrating them, i am facing a problem of login into my account while using firefox. Although it is working properly in other browsers. Please check http://bits-oasis.org/blog and http://bits-oasis.org/forum


    mcmc
    Member

    @mcmc

    I was able to circumvent the problem by renaming the page and redirecting it. Thanks for the help

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘login’ is closed to new replies.
Skip to toolbar