is this .htaccess correct

Discussion in 'Apache' started by ozkorallah, Jan 16, 2008.

  1. #1
    Hi all,
    i have my existing .htaccess as follows:
    Options +ExecCGI
    AddHandler php-cgi .php
    Action php-cgi /cgi-bin/php.cgi
    HTML:
    it is working fine.
    after i bought vbseo, i have to add vbseo rewrite rules to my existing .htaccess so it should be like:
    
    Options +ExecCGI
    AddHandler php-cgi .php
    Action php-cgi /cgi-bin/php.cgi
    RewriteEngine On
    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]
    
    HTML:
    but it is not working only a blank page and msg:
    in IE:
    Internet Explorer cannot display the webpage
    in Firefox:
    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


    please help me to find out the problem
     
    ozkorallah, Jan 16, 2008 IP
  2. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Which .htaccess did you edit? The one in your root folder?
     
    Dondon2d, Jan 16, 2008 IP
  3. ozkorallah

    ozkorallah Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes it is in my root folde
     
    ozkorallah, Jan 16, 2008 IP