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
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
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]
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
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]
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_/
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
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
I was able to circumvent the problem by renaming the page and redirecting it. Thanks for the help