Apache doesn't read .htaccess (I think)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • helimeef
    New Member
    • Sep 2007
    • 77

    Apache doesn't read .htaccess (I think)

    Hi. I'm having issues trying to get .htaccess make mod_rewrite work. I have mod_rewrite setup properly (it's in phpinfo()), but it just seems to not work.

    Right now I have two files, bob.html and alice.html, and of course .htaccess (all in the root directory). What I want to happen is have bob.html show up when I visit alice.html, so I put this in .htaccess:
    Code:
    RewriteEngine on
    RewriteRule ^alice\.html$ bob.html
    .htaccess does not seem to be read. I tested ErrorDocument and that doesn't work either. Any ideas?

    P.S. I'm running Apache 2.2 and PHP 5 on Windows Media Center Edition 2005.
  • helimeef
    New Member
    • Sep 2007
    • 77

    #2
    Never mind I fixed it, had to edit httpd.conf to allow all overrides in .htaccess. Yay.

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Heya, Steven.

      Glad to hear you got it working! Good luck with your project, and if you ever need anything, post back anytime :)

      Comment

      Working...