vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now!
vBSEO 2.0 Style Released vBSEO 3.3.0 GOLD Launched vBSEO's "LiveStats" for Google Analytics vB Sitemap Generator, Version 2.5 Success with vBSEO = 600ore Web Visitors + $1400 in a Day!

redirecting http://example.com to http://www.example.com

This is a discussion on redirecting http://example.com to http://www.example.com within the General Discussion forums, part of the vBulletin SEO Discussion category; As most of you know it's good practice to not have 2 identical URL's for the same content. Now, after ...

Go Back   vBulletin SEO Forums > vBulletin SEO Discussion > General Discussion

Enhancing 80 million pages.

  #1  
Old 04-16-2006, 10:19 AM
dutchbb's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: ---
Join Date: Oct 2005
Location: Belgium
Posts: 694
redirecting http://example.com to http://www.example.com

As most of you know it's good practice to not have 2 identical URL's for the same content.

Now, after reading this: URL Redirect and this: SitePoint Blogs » example.com vs. www.example.com… trouble!

I decided to redirect my homepage.com to HomePages

But I can't get it to work, this is the content of htaccess:

Code:
Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www|supplementen|forum|bodybuilding\.dutchbodybuilding\.com RewriteRule ^(.*)$ http://www.dutchbodybuilding.com/$1 [R=permanent,L]
What's wrong with it? I dont want to redirect my subdomains, only the "non-www" version of the homepage.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 04-16-2006, 10:20 AM
dutchbb's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: ---
Join Date: Oct 2005
Location: Belgium
Posts: 694
Re: redirecting http://example.com to http://www.example.com

BTW what a great new feature those automatic url titles! Can't wait to use those on my board when the new server is installed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 04-16-2006, 10:52 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer Support
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 23,637
Re: redirecting http://example.com to http://www.example.com

Hello,

the simpler redirection rule for you is:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^dutchbodybuilding\.com
RewriteRule ^(.*)$ http://www.dutchbodybuilding.com/$1 [R=301,L]
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers

vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now

6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 04-16-2006, 10:55 AM
dutchbb's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: ---
Join Date: Oct 2005
Location: Belgium
Posts: 694
Re: redirecting http://example.com to http://www.example.com

Great, finally one that works Tnx Oleg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 04-21-2006, 04:09 AM
briansol's Avatar
Senior Member
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 7,090
Re: redirecting http://example.com to http://www.example.com

I'm a big fan of the opposite.... no www's. They aren't needed anymore.


RewriteCond %{HTTP_HOST} ^www\.yoursite\.com
RewriteRule (.*) http://yoursite.com/$1 [R=301,L]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 04-22-2006, 09:40 PM
Joe Ward's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Joseph Ward
Join Date: Jun 2005
Location: Puerto Rico
Posts: 24,060
Blog Entries: 9
Re: redirecting http://example.com to http://www.example.com

I tend to agree Brian. Shorter is better.
__________________
Joe Ward / Crawlability Inc.
vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers

vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now

6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 03-16-2008, 11:55 AM
Joe Ward's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Joseph Ward
Join Date: Jun 2005
Location: Puerto Rico
Posts: 24,060
Blog Entries: 9
Related resource:
[How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects
__________________
Joe Ward / Crawlability Inc.
vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers

vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now

6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 03-23-2008, 07:29 AM
dutchbb's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: ---
Join Date: Oct 2005
Location: Belgium
Posts: 694
Quote:
Originally Posted by briansol View Post
I'm a big fan of the opposite.... no www's. They aren't needed anymore.


RewriteCond %{HTTP_HOST} ^www\.yoursite\.com
RewriteRule (.*) http://yoursite.com/$1 [R=301,L]
All the big sites (google, yahoo, msn, etc) use the www and redirect to that, so I tend to follow that. Also most internet users are now used to www, so it's only logical to not confuse them. I also do not believe www will ever go away.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 03-23-2008, 08:00 PM
briansol's Avatar
Senior Member
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 7,090
google.com doesn't even pass the w3 validator for basic html, uses basic css inline, and so many more non-standards errors.
[Invalid] Markup Validation of http://www.google.com/ - W3C Markup Validator

but, didn't you spend hours upon hours making your site validate?

using them as an example is pretty much what you don't want to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #10  
Old 03-23-2008, 08:49 PM
dutchbb's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: ---
Join Date: Oct 2005
Location: Belgium
Posts: 694
Well I still disagree as this is not really about strict coding (what major site does pass the validator anyway?), that is a completely other subject. This is about user experience and what they are used to. It makes sense to follow the standard -> majority (even if you personally believe that standard is wrong) because users expect to see what they see most (blue underlined text for links, links opening in same window, etc...).

Also AFAIK, the W3C has not made it clear what the correct way is, it's basically a free choice. In fact, they use the WWW themselve: http://www.w3.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #11  
Old 03-23-2008, 11:06 PM
briansol's Avatar
Senior Member
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 7,090
[Valid] Markup Validation of http://wikipedia.org/ - W3C Markup Validator

wikipedia does

And then we all wonder why they rank #1 for like, everything


back on topic:
www vs. non www – How should I structure my URL?

comment #3 makes a really good point
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #12  
Old 03-30-2008, 06:22 PM
dutchbb's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: ---
Join Date: Oct 2005
Location: Belgium
Posts: 694
Wikipedia though, strangely enough, is using both URL types: Wikipedia and not redirecting to either one. And isn't that pr leaking according to some SEO experts ?

But yeah, both can be defended.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Redirecting to Wrong Thread JohnScott Bug Reporting 2 04-19-2006 02:23 AM
Redirecting emin General Discussion 16 12-31-2005 04:30 AM


All times are GMT -4. The time now is 02:39 AM.


Powered by vBulletin Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.