Updating mod_rewrite permanent pages

Discussion in 'Apache' started by Neticus, Jan 30, 2006.

  1. #1
    I have script I can't seem to edit no matter what I do the code fails to appear on other pages. So I deleted all the files one by one to find out which files was responsible for what. To my amazement the pages still remained. The only file left I hadn't deleted was the .htaccess file. So doing some research Im sure now its something to do with mod_rewrite, peramanent structures etc. The script does state it uses mod_rewrite. So my question is this how may i reset or update the mod rewrite rules/permanent structure code? (if that's the right terminology) so that it accepts new visual codes after upgrade. Do I have to contact my host? I don't get it.

    Please this is the .htaccess file:

    DirectoryIndex index.php index.html index.htm
    
    ## mod_rewrite configuration
    RewriteEngine On
    
    RewriteRule ^[a-zA-Z]$ /dictionary/display.php?action=search&by=$0
    RewriteRule ^([a-zA-Z])\/$ /dictionary/$1 [R]
    
    RewriteRule ^([A-za-z_-]*)\.html$ /dictionary/display.php?action=show&word=$1
    
    RewriteRule ^admin$ /dictionary/$0.php
    RewriteRule ^(admin)\/$ /dictionary/$1 [R]
    Code (markup):
    Any help appreciated. Thanks
     
    Neticus, Jan 30, 2006 IP