mod_rewrite not working on windows

Discussion in 'Apache' started by opensas, Mar 19, 2010.

  1. #1
    I'm using Apache/2.2.15 (Win32) PHP/5.3.2

    on Windows NT PC1484-VM21 5.1 build 2600 (Windows XP Professional Service Pack 3) i586

    this is my httpd.conf

    LoadModule rewrite_module modules/mod_rewrite.so
    Code (markup):
    I have the following file

    C:\apache\htdocs\rewrite\.htaccess

    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^silly\.html$ /exists.html [L]
    Code (markup):
    navigating to http://localhost/rewrite/silly.html
    gives a

    Not Found
    
    The requested URL /rewrite/silly.html was not found on this server.
    Code (markup):
    phpinfo() tells me that the module is reallty loaded

    access.log

    127.0.0.1 - - [19/Mar/2010:15:36:32 -0300] "GET /rewrite/silly.html HTTP/1.1" 404 216
    127.0.0.1 - - [19/Mar/2010:15:36:32 -0300] "GET /favicon.ico HTTP/1.1" 404 209

    any idea?
     
    opensas, Mar 19, 2010 IP
  2. opensas

    opensas Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    oops, silly me, forgot the AllowOverride All in httpd.conf

    :eek:
     
    opensas, Mar 19, 2010 IP