Results 1 to 4 of 4

How I configure my .htaccess to optimal results??

This is a discussion on How I configure my .htaccess to optimal results?? within the General Discussion forums, part of the vBSEO SEO Plugin category; I hace a question: The .htaccess file is the following: # Comment the following line (add '#' at the beginning) ...

  1. #1
    Member
    Real Name
    Cristian
    Join Date
    Mar 2008
    Location
    Argentina
    Posts
    40
    Liked
    0 times

    How I configure my .htaccess to optimal results??

    I hace a question:

    The .htaccess file is the following:


    # 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 %{REQUEST_URI} !(admincp/|modcp/|cron)
    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]

    If my forum domain is www.foroexample.com and http://foroexample.com (I can enter from anyone, with or without www)...

    How must I change the .htaccess file??

    What should I modify?? Do I have to let the #??

    Please!! I don't understand anything!!

  2. #2
    Member
    Real Name
    Cristian
    Join Date
    Mar 2008
    Location
    Argentina
    Posts
    40
    Liked
    0 times
    I configure the .htaccess file like this: (my site is buforo.com with and without www)


    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    RewriteEngine On
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    # 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\.buforo\.com
    RewriteRule (.*) http://www.buforo.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)
    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]

    Is it OK??

  3. #3
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times

  4. #4
    Member
    Real Name
    Cristian
    Join Date
    Mar 2008
    Location
    Argentina
    Posts
    40
    Liked
    0 times
    Thanks a Lot.

Similar Threads

  1. Is it difficult to configure?
    By pressanykey in forum Pre-Sales Questions
    Replies: 1
    Last Post: 11-27-2006, 10:19 AM
  2. Optimal RSS import format?
    By tza in forum General Discussion
    Replies: 3
    Last Post: 08-29-2006, 04:50 AM
  3. configure to vblinks
    By barroca in forum General Discussion
    Replies: 9
    Last Post: 07-18-2006, 04:25 PM
  4. strange results in googlebot results
    By Mike in forum General Discussion
    Replies: 1
    Last Post: 01-19-2006, 03:25 PM

Posting Permissions

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