Mod Rewrite problem

Discussion in 'Apache' started by sandossu, Apr 24, 2009.

  1. #1
    Hi,

    I have the following gallery for my website, which I made by myself: http://www.divaa.com/photos/ .
    The directory photos exists, but it's subdirectories are rewritten. For example, http://www.divaa.com/photos/anna-kournikova/, is actually http://www.divaa.com/photos/index.php?photo=anna-kournikova .

    The website does work in normal browser, but Google doesn't index it, Lynx gets 404 and the W3C validator gets 404 too.

    Here's the .htacces:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /photos
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^(.*)$ - [S=2]
    RewriteRule ^(.*)$ index.php?photo=$1 [L]
    </IfModule>

    Do you have any idea?
     
    sandossu, Apr 24, 2009 IP
  2. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what's the point of this right here?

    
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^(.*)$ - [S=2]
    Code (markup):
    ?

    cheers,
     
    Lpe04, Apr 27, 2009 IP