mor rewrite (again)

Discussion in 'Apache' started by fallen, Mar 14, 2007.

  1. #1
    Hello,

    here is my .htaccess file:
    
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^/(.+)\.(.+) img.php?img=$1.$2
    
    Code (markup):
    it should rewrite:
    http://domain.com/l1a3l5al8a.jpg

    to:
    http://domain.com/img.php?img=l1a3l5al8a.jpg

    but it does not...
    it says 404 not found :/

    can anyone guide to the right direction how to accomplish that?
    tried different .htaccess manuals, and seems this is the correct way, maybe my server configuration is bad?
    Other sites on the same server has no errors with .htaccess rewrites.

    Any help would be appreciated.

    thanks in advance,
    Fallen
     
    fallen, Mar 14, 2007 IP
  2. evera

    evera Peon

    Messages:
    283
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    evera, Mar 14, 2007 IP
  3. fallen

    fallen Well-Known Member

    Messages:
    162
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    118
    #3
    that seem to be the same,
    something must be wrong with server config :/

    Fallen
     
    fallen, Mar 14, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)\.jpg$ img.php?img=$1 [L]
     
    Nintendo, Mar 14, 2007 IP