MyBB Community Forums

Full Version: the appending offending www
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when I visit my forum, somehow it appends www in front of the url. Which I don't want and need to fix.

When you visit the forum at http://misguidedthoughts.com/forum it'll append the www. But when you click any internal link in the forum, it doesn't have it.

This wouldn't be a problem except for logging in.

So what can I do? Change the cookie? Anything in the database to change? (And all my settings in the board settings page don't have the www)

~silverwing
silverwing Wrote:when I visit my forum, somehow it appends www in front of the url. Which I don't want and need to fix.

When you visit the forum at http://misguidedthoughts.com/forum it'll append the www. But when you click any internal link in the forum, it doesn't have it.

This wouldn't be a problem except for logging in.

So what can I do? Change the cookie? Anything in the database to change? (And all my settings in the board settings page don't have the www)

~silverwing
It's the configuration with your server. If you go here: http://misguidedthoughts.com/forum/ (note the slash at the end), the server will not redirect you to your site with www.
now that's a neat little trick.

Thanks!

~silverwing
and since we're on the subject, do you (you being anyone) know a handy .htaccess rewrite rule I can use to make sure the www never comes up?

~silverwing
add this to your .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^misguidedthoughts.com/forum$ [NC]
RewriteRule ^(.*)$ http://www.misguidedthoughts.com/forum/ [R=301,L]