vBulletin Search Engine Optimization
This is a discussion on [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects within the General Discussion forums, part of the vBSEO SEO Plugin category; This one is different the one that is in the .htaccess file in /forum that came with vbseo Code: RewriteCond ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#16
| ||||
| ||||
|
This one is different the one that is in the .htaccess file in /forum that came with vbseo Code: RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
Code:
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
|
|
#17
| ||||
| ||||
|
Hello, the code would be: Code: RewriteCond %{HTTP_HOST} !^yourdomain\.com
RewriteRule (.*) http://yourdomain.com/forum/$1 [L,R=301]
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#18
| ||||
| ||||
|
Thanks oleg,
|
|
#19
| |||
| |||
|
hi for the main domain name ive put the redirect code in htaccess so non-www goes to www but how about the forums...or is it only need with the main domain name?
|
|
#20
| ||||
| ||||
|
If your forum is located in a sub-folder, then nothing additional is required.
__________________ Joe Ward / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#21
| |||
| |||
|
thanks
|
|
#22
| |||
| |||
|
Thank you |
|
#23
| |||
| |||
|
Ive set this up in the .htaccess file in the forum folder however some users are experiencing 404 pages when browsing. It occasionally happens when a user logins with incorrect password. Or when a user clicks home from a forum thread. Don't seem to get the issue myself anymore but when I type in http://mywebsite.com/forum it wont show the forum redirects to http://www.mywebsite.com/forums//web...ite.com/forums (which is a 404 not found page) However if I type in http://mywebsite.com/forum/ it redirects to http://www.mywebsite.com/forum/ fine. Last edited by bernie; 05-05-2008 at 06:26 PM. |
|
#24
| ||||
| ||||
|
Hello, replied to your ticket.
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#25
| ||||
| ||||
|
how to setup using sub domain? Code: i am used http://forum.djawir.com i want redirect from http://www.forum.djawir.com to http://forum.djawir.com Code: RewriteCond %{HTTP_HOST} !^www\.forum.djawir\.com
RewriteRule (.*) http://forum.djawir.com/$1 [L,R=301]
Last edited by djawir; 05-25-2008 at 09:01 AM. |
|
#26
| |||
| |||
|
Hi all, hi joe, what is the best choise for a not expert user like me? www or not www? |
|
#27
| |||
| |||
|
yes good question, and if someone want to change his first choice, there is a bad impact in indexing?
|
|
#28
| ||||
| ||||
|
#29
| |||
| |||
|
i've tried to use the no www. but in my main site doesn't work Code: RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
Code: # Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
RewriteCond %{HTTP_HOST} !^example\.com
RewriteCond %{REQUEST_URI} forum/
RewriteRule (.*) http://example.com/forum/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
|
|
#30
| ||||
| ||||
|
Did you update your forums URL in vB admincp options?
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Urgent help with htaccess and 301 redirects | markbolyard | URL Rewrite Settings | 4 | 12-02-2007 05:24 PM |
| htaccess redirects when moving folder | I, Brian | Troubleshooting | 3 | 10-05-2007 02:47 PM |
| Help with initial htaccess setup | mhc1576 | URL Rewrite Settings | 1 | 12-28-2006 07:44 AM |
| 301 redirects disabled, vBSEO still redirects to new archive | PageUp | Troubleshooting | 6 | 10-23-2005 01:32 PM |