Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Oct 2009, 00:19
MikesSite MikesSite is offline
 
Join Date: Jan 2009
Thumbs up Need to remove www from forum URL

A lot of the time when you find my forum via a search engine, it will load the page with www in the URL, which we all know causes problems. Anyway to force www out of the url? Messed around w/ the .htaccess file but couldnt really get it to work. The forum is in the /forums directory, not the root directory and I would only want the forum directory to force out the www.

Thanks.

Last edited by MikesSite; 01 Oct 2009 at 00:54.
Reply With Quote
  #2  
Old 01 Oct 2009, 00:56
azn_romeo_4u azn_romeo_4u is offline
 
Join Date: Feb 2006
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
Use it in .htaccess in your root dir...I don't think it has to be in the forum dir but if it doesn't work in the root dir, then try the forum dir
__________________
Cursors For Your Computer and Forums
Version 3.8.x
Version 3.7.x
Version 3.6.x
Reply With Quote
  #3  
Old 01 Oct 2009, 01:07
MikesSite MikesSite is offline
 
Join Date: Jan 2009
Edit: I got it doing what I need it to do now. Thanks.

Last edited by MikesSite; 01 Oct 2009 at 02:17.
Reply With Quote
  #4  
Old 01 Oct 2009, 01:16
Quantnet Quantnet is offline
 
Join Date: Nov 2006
what problem with www in the forum url?
I don't have any problem and even want to use htaccess to redirect non-www to www as it will prevent duplicated content in google.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:21.

Layout Options | Width: Wide Color: