mod rewrite

Discussion in 'Apache' started by andydrizen, Sep 6, 2006.

  1. #1
    Hi all,

    I've been battling with this problem for weeks now and not managed to find out anything to help.. I have a website in the document root folder, and also in that folder is a .htaccess file, with the lines:

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^/\.]+)/?$ index.php?menu=$1 [L]

    However, whenever i try to access /new (which should take me to index.php?menu=news) it just spews up a 404.. - any ideas?

    I have Apache 2.2.3 and PHP 5.1.6.
    In the httpd.conf file i have uncommented the only obviously relavent line:

    LoadModule rewrite_module modules/mod_rewrite.so

    but in the phpinfo(); there is no mention of the mod_rewrite...


    Any ideas would be appreciated!


    Thanks :)
     
    andydrizen, Sep 6, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)$ index.php?menu=$1 [L]
     
    Nintendo, Sep 6, 2006 IP
  3. andydrizen

    andydrizen Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I presume you are implying I need to change my .htaccess page from what I wrote to what you wrote - but then I get a 404 instead of a 403.
     
    andydrizen, Sep 8, 2006 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    If that doesn't do it, I don't know what will.
     
    Nintendo, Sep 8, 2006 IP