vBulletin Search Engine Optimization
This is a discussion on Htaccess Problem within the Troubleshooting forums, part of the vBSEO SEO Plugin category; In the instructions it says: C. Upload the vBSEO .htaccess file (located in the 'htaccess' folder) to your forum root ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
|
In the instructions it says: Quote:
UPDATE: We just opened up the htaccess file and there is a lot of "yourdomain" paths. Are we supposed to edit this file to our domain first? The instructions said nothing about editing it... |
|
#2
| ||||
| ||||
|
Col, those "yourdomain" are commented out with the # did you have an .htaccess file before adding the vbseo .htaccess? I've had to copy the vbseo htaccess info, and added it in with an existing htaccess file.. This may be your case as well. -Brandon |
|
#3
| |||
| |||
| Hi Brandon. No we did not have one before. I know it's the htaccess file causing the problem because as soon as I deleted it off the server, the forum automatically reappeared. |
|
#5
| |||
| |||
| 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]
We just noticed something while looking at the file. It mentions the admincp and modcp folders. We renamed our admin and mod folders. So where it says admincp should we change it to what our admin folder is called? |
|
#6
| ||||
| ||||
|
Yes you can replace the admincp's with the new name of your directories. What errors is it showing when you put this online? (Note, when a line starts with #, it is commented out, so the yourdomain part does not matter) |
|
#9
| ||||
| ||||
|
Smells like a lack of mod_rewrite functionality to me.. are you certain that mod_rewrite is enabled on your server, and that .htaccess is supported?
__________________ Ace Shattock / 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. My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | vBulletin Hosting |
|
#10
| |||
| |||
|
According to this GoDaddy help article, yes, it should be fine: Quote:
|
|
#11
| ||||
| ||||
|
__________________ 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. |
|
#12
| |||
| |||
|
Thanks Joe Just to be clear to make sure we did it right here is the htaccess file: Code: RewriteEngine on
RewriteRule testpage\.html http://www.google.com [R]
# 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]
I read somewhere in another thread about Go Daddy servers where the path could be wrong (it needs to be shorter). Could this be the cause? |
|
#13
| ||||
| ||||
|
Try it with just the following in it: Code: RewriteEngine on RewriteRule testpage\.html http://www.google.com [R]
__________________ Ace Shattock / 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. My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | vBulletin Hosting |
|
#14
| |||
| |||
|
We tried that. It stayed the same |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .htaccess problem | inparadise | Troubleshooting | 8 | 02-04-2008 01:34 AM |
| htaccess problem | trigon | Deutsch | 31 | 01-03-2008 01:32 PM |
| Problem with htaccess | Hawork | General Discussion | 1 | 04-13-2007 09:23 PM |
| .htaccess problem right off | eJM | Custom Rewrite Rules | 10 | 08-01-2006 11:27 PM |
| htaccess file problem / vbseo problem | Bestgfe | Troubleshooting | 6 | 04-05-2006 10:21 AM |