.htacces doesn't working

Discussion in 'Apache' started by Bildr, Apr 21, 2007.

  1. #1
    hi all, i got a problem with apache 1.3.23 and .htacces file (i want to test my rewrite rules) with doesn't working. in httpd.conf i allowed this lines:
    LoadModule rewrite_module modules/mod_rewrite.so
    AddModule mod_rewrite.c

    also i set all "Options" and "AllowOverride" to "All". i'm trying mod rewrite on this simply .htacces file in blah directory:

    RewriteEngine on
    RewriteRule blah\.html index.php

    calling localhost/blah/blah.html from browser ending by 400: bad request. i'm hopeless at this. any ideas?
     
    Bildr, Apr 21, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteRule ^blah/blah\.html$ blah/index.php [L]

    Localhost doesn't cut it. It has to be an actual domain.

    domain.com/.htaccess
     
    Nintendo, Apr 21, 2007 IP