formatting apache rewrite rule

Discussion in 'Apache' started by komrad, Nov 3, 2008.

  1. #1
    Hello all,

    I have dynamic pages that look like this.

    /index.php?purl=text_variable_with_underscore_2355.html

    What would be the rewrite rule to get them to look like this.

    /text_variable_with_underscore_2355.html

    There is no other page besides index.php for this site.

    Thanks
     
    komrad, Nov 3, 2008 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)\.html$ index.php?purl=$1.html [L]
     
    Nintendo, Nov 6, 2008 IP