Results 1 to 3 of 3

htaccess - optimal settings and best practices.

This is a discussion on htaccess - optimal settings and best practices. within the General Discussion forums, part of the vBSEO SEO Plugin category; currently my htaccess file looks like this # Comment the following line (add '#' at the beginning) # to disable ...

  1. #1
    Junior Member
    Real Name
    Lonnie Fluty
    Join Date
    Mar 2011
    Posts
    5
    Liked
    0 times

    htaccess - optimal settings and best practices.

    currently my htaccess file looks like this

    # 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\.sample\.com
    RewriteRule (.*) http://www.sample.com/forum/$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]
    Should I be enabling gzip, exprires headers and other tricks to speed up the site?

    Im on apache using php version 5.2.17

    any tips?

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Server and caching optimizations are beyond the realm of our support.

  3. #3
    Junior Member
    Real Name
    john
    Join Date
    Jan 2012
    Posts
    1
    Liked
    0 times
    It's better to enable gzip

Similar Threads

  1. Optimal settings for vBSEO sitemap
    By Astyanax in forum General Discussion
    Replies: 2
    Last Post: 06-27-2010, 05:10 PM
  2. Best Practices for CMS?
    By serphog in forum URL Rewrite Settings
    Replies: 0
    Last Post: 02-16-2010, 06:25 PM
  3. How I configure my .htaccess to optimal results??
    By LAJAURIA in forum General Discussion
    Replies: 3
    Last Post: 06-21-2008, 07:16 PM
  4. Moving .htaccess settings to httpd.conf
    By rinkrat in forum Troubleshooting
    Replies: 1
    Last Post: 02-10-2008, 11:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •