Hi there,im an admin on a fairly large board, and i am under the impression that moving rewrite from .htaccess to vhost.conf will improve general performance. I´m not, however, 100% sure why this would be a good thing, just read what others say about it.
I know there has been a lot of writing on this, but i just could not figure this out by reading, so i have to ask.Anyway. There is some other stuff on the server, so i can not go httpd.conf with this, it has to be vhost. k, so i copied the htaccess data, and pasted it into vhost, find it below.
1. First error was rejection for RewriteBase /vb. This path must be wrong in some way, but i realy don´t know how. Please advice.
Server error message:
---
Syntax error on line 16 of var/www/vhost/mysite.info/conf/vhost.confRewriteBase: Only valid in per directory config files
[FAILED]]
---
My line 16 is: RewriteBase /vb
After that nothing seemed to be working.
Best regards,
Franke
---------------------------------------------------------------
php_admin_flag safe_mode off
# 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 /vbRewriteCond %{HTTP_HOST} !^www\.mysite\.infoRewriteRule (.*) http://www.mysite.info/vb/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/RewriteRule ^(.+)$ vbseo.php [L,QSA]


LinkBack URL
About LinkBacks





Reply With Quote
