Results 1 to 4 of 4

.htaccess recommendations

This is a discussion on .htaccess recommendations within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi, my site is laserpointerforums.com/laser_pointer_forums_3/forum right now i have an index.htm file in the root www for my domain folder ...

  1. #1
    Member
    Real Name
    m0rgulvale
    Join Date
    May 2009
    Posts
    91
    Liked
    2 times

    .htaccess recommendations

    Hi, my site is laserpointerforums.com/laser_pointer_forums_3/forum


    right now i have an index.htm file in the root www for my domain folder and the .htaccess in the this folder has these contents:

    redirect 301 /index.htm hxxp://laserpointerforums.com/laser_pointer_forums_3/forum/


    vbseo comes with an htaccess file.. should i put this file it comes with in the root of my www folder, or

    htxp://laserpointerforums.com/laser_pointer_forums_3/forum


    Other question about the htaccess file: (do i replace the modcp and admincp with new folder names if i had changed them)?


    # 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?sit
    emap=$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]



    Please advise

    thanks!

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    You should not add that line , it is not needed
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Member
    Real Name
    m0rgulvale
    Join Date
    May 2009
    Posts
    91
    Liked
    2 times
    here is my current config for Laser Pointer Forums - Discuss Lasers & Laser Pointers





    # 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\.laserpointerforums\.com
    #RewriteRule (.*) http://www.laserpointerforums.com/laser_pointer_forums_3/forum/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sit
    emap=$1 [L]

    RewriteCond %{REQUEST_URI} !(adminprivateblahblah/|privateblahblah/|cron|vbseo_s
    itemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(adminprivateblahblah|privateblahblah|clientsc
    ript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]


    i am using the vbseo site map modification as well

    does everything look ok? (note: why don't i need to change the URLs for admin and modcp if those folders don't exist?) a little confused about this

    thanks for your help

  4. #4
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    You can change the following lines

    Code:
    #RewriteCond %{HTTP_HOST} !^www\.laserpointerforums\.com
    #RewriteRule (.*) http://www.laserpointerforums.com/laser_pointer_forums_3/forum/$1 [L,R=301]
    with the following one

    Code:
    RewriteCond %{HTTP_HOST} !^www\.laserpointerforums\.com
    RewriteRule (.*) http://www.laserpointerforums.com/laser_pointer_forums_3/forum/$1 [L,R=301]
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Similar Threads

  1. New user need your recommendations
    By jupiter5 in forum Critique Please
    Replies: 29
    Last Post: 11-08-2010, 08:22 AM
  2. SEO Recommendations
    By Garala in forum General Discussion
    Replies: 2
    Last Post: 10-14-2008, 07:06 PM
  3. Looking for Template and Skin Recommendations
    By rmjvol in forum Template Modifications
    Replies: 3
    Last Post: 12-19-2006, 07:50 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
  •