Simple Mod_rewrite problem

Discussion in 'Apache' started by burhankhan, Jun 30, 2007.

  1. #1
    Hi:

    I am using this simple mod_rewrite from last 2 years.
    Suddenly i have seen an amazing thing (for me)

    Actually Code is:
    RewriteRule ^authors\.html$ authors.php [NC,L]
    Code (markup):
    This will redirect www.mydomain.com/authors.html to www.mydomain.com/authors.php

    But problem is that, authors.php can also be access by www.mydomain.com/authors (without any extansion)

    Is there any problem in my Mod_rewrite code?

    Or what is solution for stopping access through without extension?

    Thanks
    Burhan Khan
     
    burhankhan, Jun 30, 2007 IP