vBulletin Search Engine Optimization
This is a discussion on Some .htaccess questions within the Pre-Sales Questions forums, part of the Announcements & Pre-Sales category; Hi, just thinking of making a purchase, I wanted to check there wouldn't be any clashes with my existing set ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Some .htaccess questions Hi, just thinking of making a purchase, I wanted to check there wouldn't be any clashes with my existing set up. Firstly, my forum lives in the /forums/ directory of the site, there's no .htaccess in the root forum folder. In the root of the domain I already have a .htaccess file that's pointing the pointing the www to the non www version of the site and also a redirect of a section to another section thus: Code: RewriteEngine On
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^site\.co.uk$
RewriteRule (.*) http://site.co.uk/$1 [R=301,L]
Redirect permanent /example http://site.co.uk/example/2005
Also, I have modcp and admincp folders password protected - will vbseo interfere with them in any way? I must point out rewrites and .htaccess files are a bit of a mystery to me so if these questions seem a bit dull, my apologies! |
|
#2
| ||||
| ||||
| Hello David , Your .htaccess will not cause any trouble at all. Here is the default .htaccess content that comes with vBSEO. As you can see it will not be a problem at all 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 %{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]
|
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wordpress htaccess + vbseo htaccess | chris06 | URL Rewrite Settings | 1 | 11-01-2007 11:56 AM |
| 3 questions.. | butty | vBSEO.com 1.0 Style | 5 | 10-05-2007 02:04 AM |
| .htaccess in forum root w/ exisiting .htaccess? | OttoBomb | Troubleshooting | 5 | 07-03-2007 03:45 PM |
| htaccess questions | chrisj8221 | Troubleshooting | 5 | 09-07-2006 10:22 AM |
| Some questions | Dactyl | Pre-Sales Questions | 2 | 12-26-2005 12:16 PM |