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; yes but doesn't work on main site...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#31
| |||
| |||
|
yes but doesn't work on main site
|
|
#32
| ||||
| ||||
|
You should create a separate .htaccess in domain root for that.
__________________ 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. |
|
#33
| |||
| |||
|
i have already 2 .htaccess files, 1 domain root - 1 forum root
|
|
#34
| ||||
| ||||
|
What is your domain root .htaccess? Do I understand correctly that it's top domain URL is not redirected?
__________________ 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. |
|
#35
| |||
| |||
|
the top domain is not redirected and in the forum our members have problems to log in Code: RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.player-art\.com$
RewriteRule ^(.*)$ http://player-art.com/$1 [L,R=301]
|
|
#36
| ||||
| ||||
|
Please open a ticket with ftp access for troubleshooting.
__________________ 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. |
|
#37
| |||
| |||
|
Ok open Thanks |
|
#38
| ||||
| ||||
|
Update: the issues fixed by changing Wordpress URL to non-www domain as well.
__________________ 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. |
|
#39
| |||
| |||
|
Hello, I'm having trouble with this, I have Code: ##AddType application/x-httpd-php5 .php
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.jeep-cj\.com
RewriteRule (.*) http://www.jeep-cj.com/$1 [R=301,L]
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} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$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]
Code: jeep-cj.com to www.jeep-cj.com Code: jeep-cj.com/forums DOES NOT rewrite to www.jeep-cj.com/forums Thanks, |
|
#40
| ||||
| ||||
|
In forums/.htaccess you should find: Code: #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
Code: RewriteCond %{HTTP_HOST} !^www\.jeep-cj\.com
RewriteRule (.*) http://www.jeep-cj.com/forums/$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. |
|
#41
| |||
| |||
| Quote:
Code: jeep-cj.com/forums Code: www.jeep-cj.com/forms I thought that the rewrite in the root public_html directory was recursive, but it seems that that is not so. Very frustrating... Ideas? Thanks, |
|
#42
| ||||
| ||||
|
What is your .htaccess file in forums/ folder now?
__________________ 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. |
|
#43
| |||
| |||
|
Per the first post (in the instruction of this thread) I made it Code: RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.jeep-cj\.com
RewriteRule (.*) http://www.jeep-cj.com/$1 [R=301,L]
Thanks for the help... |
|
#44
| |||
| |||
|
Sorry - you said forums folder... 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} !^www\.jeep-cj\.com\forums\
#RewriteRule (.*) http://www.jeep-cj.com/forums/$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]]
|
|
#45
| |||
| |||
|
Sorry, I'm feeling pretty dumb right now... I had forgot to uncomment it out... It works now. So, help understand a little here. The root .htacess file is NOT recursive? I will need to add a seperate .htacess file for all the folders I want to rewrite and add www? Thanks, |
| 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 |