vBulletin Search Engine Optimization
|
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 ...
| |||||||
|
#1
| ||||
| ||||
| 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]
Thanks |
|
#2
| ||||
| ||||
| 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 |
|
#3
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| Re: redirecting http://example.com to http://www.example.com
Great, finally one that works |
|
#5
| ||||
| ||||
| 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] |
|
#6
| ||||
| ||||
| 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 |
|
#7
| ||||
| ||||
|
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 |
|
#8
| ||||
| ||||
| 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.
|
|
#9
| ||||
| ||||
|
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. |
|
#10
| ||||
| ||||
|
Well I still disagree 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/ |
|
#11
| ||||
| ||||
| [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 |
| Thread Tools | |
| |
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 |