Hi all,
We installed vBseo only few days ago and everything works fine so far, we just have a couple of questions.
My vb setup is on the root folder meaning that my home page is http://www.mysite.com/
I 've moved the .htaccess file inside my httpd.conf as suggested but I am not quite sure if it's correct. The directory part of the conf is:
The site is also available from http://mysite.com and from http://www.mysite.com. How can I forward/redirect/rewrite all traffic from http://mysite.com to http://www.mysite.com?Code:<VirtualHost xxx.xxx.xxx.xxx:80> ServerName mysite.com ServerAlias www.mysite.com DocumentRoot /home/mysite/public_html ErrorLog /home/mysite/logs/error_log CustomLog /home/mysite/logs/access_log combined ScriptAlias /cgi-bin/ /home/mysite/cgi-bin/ <Directory /home/mysite/public_html> Options IncludesNOEXEC FollowSymLinks AllowOverride All allow from all ErrorDocument 404 /404.html # 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} !^mysite\.com #RewriteRule (.*) http://www.mysite.com/$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) 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] </Directory> </VirtualHost>
Thank you


2Likes
LinkBack URL
About LinkBacks





Reply With Quote
.
