Results 1 to 2 of 2

Some .htaccess questions

This is a discussion on Some .htaccess questions within the Pre-Sales Questions forums, part of the Announcements & Pre-Sales category; Hi, just thinking of making a purchase, I wanted to check there wouldn't be any clashes with my existing set ...

  1. #1
    Junior Member
    Real Name
    David
    Join Date
    Mar 2008
    Posts
    1
    Liked
    0 times

    Some .htaccess questions

    Hi, just thinking of making a purchase, I wanted to check there wouldn't be any clashes with my existing set up. Firstly, my forum lives in the /forums/ directory of the site, there's no .htaccess in the root forum folder.

    In the root of the domain I already have a .htaccess file that's pointing the pointing the www to the non www version of the site and also a redirect of a section to another section thus:

    Code:
    RewriteEngine On
    
    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^site\.co.uk$
    RewriteRule (.*) http://site.co.uk/$1 [R=301,L]
    
    Redirect permanent /example http://site.co.uk/example/2005
    Now, I know a lot of people use similar .htaccess files, but I was wondering if that would pose any problems for vBseo, and if it would continue to forward the www to the non www within the /forums/ folder?

    Also, I have modcp and admincp folders password protected - will vbseo interfere with them in any way?

    I must point out rewrites and .htaccess files are a bit of a mystery to me so if these questions seem a bit dull, my apologies!

  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
    Hello David ,

    Your .htaccess will not cause any trouble at all. Here is the default .htaccess content that comes with vBSEO. As you can see it will not be a problem at all

    Code:
    # 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 %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
    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. Wordpress htaccess + vbseo htaccess
    By chris06 in forum URL Rewrite Settings
    Replies: 1
    Last Post: 11-01-2007, 11:56 AM
  2. 3 questions..
    By butty in forum vBSEO.com Styles
    Replies: 5
    Last Post: 10-05-2007, 02:04 AM
  3. .htaccess in forum root w/ exisiting .htaccess?
    By OttoBomb in forum Troubleshooting
    Replies: 5
    Last Post: 07-03-2007, 03:45 PM
  4. htaccess questions
    By chrisj8221 in forum Troubleshooting
    Replies: 5
    Last Post: 09-07-2006, 10:22 AM
  5. Some questions
    By Dactyl in forum Pre-Sales Questions
    Replies: 2
    Last Post: 12-26-2005, 12:16 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
  •