Mod Rewrite Not Working

Discussion in 'Site & Server Administration' started by M.W.S., Dec 12, 2007.

  1. #1
    I have a problem: I can't get mod_rewrite working.
    I have in my .htaccess: (example)
    RewriteRule ^login\.html(.*)$ index.php?act=Login$1
    Code (markup):
    On website there still is index.php?act=Login, but when I manually type: example.com/login.html , it works.
    Any ideas?
    P.S. I'm using Apache 1.3 Unix
     
    M.W.S., Dec 12, 2007 IP
  2. Ronnyv1

    Ronnyv1 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    please try
    RewriteEngine On
    RewriteRule ^([^/]*)\.html$ /index.php?act=$1 [L]
    Code (markup):
    let me know how it goes.
     
    Ronnyv1, Dec 13, 2007 IP