url rewriting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dinesh1985singh
    New Member
    • Apr 2010
    • 49

    url rewriting

    Hello everyone,

    I want to do url rewriting in php , for this i created a .htacces file in the root directory.
    I used the following code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^phpInfo\.html$ phpInfo.php
    Now the issue is that both the phpInfo.html and phpInfo.php are opening up in the browser without any problem. But I want to opening up only phpInfo.html and if someone try to open phpInfo.php , page not found would display to him.

    Please help me out I tried lot but didn't get success.

    Thanks
Working...