vBulletin Search Engine Optimization
This is a discussion on Redirect to non-www within the Troubleshooting forums, part of the vBSEO SEO Plugin category; On my forum Warhammer Online Forums I need it so if you type in the WWW it redirects to the ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Redirect to non-www
On my forum Warhammer Online Forums I need it so if you type in the WWW it redirects to the non-WWW. If you go to the WWW version at the moment you're logged out and you can't log in, which I'm sure a few people would get caught out with. Any help is appreciated. |
|
#2
| ||||
| ||||
|
Hello David , Please check the following thread [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects |
|
#3
| |||
| |||
|
See, I've done all of that, but it does absolutely nothing. I've tried putting code in the htaccess in the public_html directory, and the one in the /forums directory, no change with either :(
|
|
#4
| ||||
| ||||
|
What is your forums .htaccess contents now?
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#5
| |||
| |||
|
Hmm, I just noticed something. My licence for vbSeo is registered to www.warhammergamers.com/forums - I know that is a long-shot but could that be affecting it? Anyways, here are my two htaccess files: public_html Code: RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.warhammergamers\.com$
RewriteRule ^(.*)$ http://warhammergamers.com/$1 [L,R=301]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
/forums 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 /forums/
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
|
|
#6
| ||||
| ||||
|
I see that redirect works for your site homepage, but you don't have redirect rule in forums .htaccess file, that's why forum is not redirected.
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#7
| |||
| |||
|
I put that code at the top of my htaccess file, but then www.warhammergamers.com/forums redirects to http://warhammergamers.com//home/war...ic_html/forums |
|
#8
| ||||
| ||||
|
Please also check this: Add www to forum url with no trailing slash
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#9
| |||
| |||
|
Perfect! It appears to be working great now. Thanks. |
|
#10
| ||||
| ||||
|
Great!
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 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 |
| http://www.vbseo.com/redirect-to/?redirect=http | gooster | General Discussion | 3 | 04-10-2008 01:30 PM |
| How to redirect this url | ssmarket.net | Custom Rewrite Rules | 1 | 09-10-2007 07:32 AM |
| Redirect PR | Ziki | General Discussion | 11 | 02-18-2007 02:22 PM |
| How do I redirect the right way? | nebu | General Discussion | 2 | 01-06-2007 08:44 PM |