1. # Comment the following line (add '#' at the beginning)
  2. # to disable mod_rewrite functions.
  3. # Please note: you still need to disable the hack in
  4. # the vBSEO control panel to stop url rewrites.
  5. ModPagespeed off
  6. #ExpiresActive Off
  7. RewriteEngine On
  8. # Some servers require the Rewritebase directive to be
  9. # enabled (remove '#' at the beginning to activate)
  10. # Please note: when enabled, you must include the path
  11. # to your root vB folder (i.e. RewriteBase /forums/)
  12. #RewriteBase /
  13. #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
  14. #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
  15. RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
  16. RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
  17. RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
  18. RewriteCond %{REQUEST_FILENAME} !-f
  19. RewriteCond %{REQUEST_FILENAME} !-d
  20. RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
  21. RewriteRule ^(.+)$ vbseo.php [L,QSA]