Help on mod_rewrite.......

Discussion in 'Apache' started by tamilsoft, Jun 8, 2007.

  1. #1
    tamilsoft, Jun 8, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    You can rewrite:
    RewriteRule (.*)\.aspx /$1.php?{%QUERY_STRING}
    Code (markup):
    Or get Apache to handle aspx as PHP scripts by adding this line to .htaccess:
    AddType application/x-httpd-php .aspx
    Code (markup):
     
    krt, Jun 8, 2007 IP
  3. bin_asc

    bin_asc Active Member

    Messages:
    122
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Second solution is less intensive for the server.
     
    bin_asc, Jun 10, 2007 IP