Apache rewrite rule

Status
Not open for further replies.

komrad

New Member
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
 

louie

New Member
something simple will be
Code:
RewriteRule ^([0-9a-zA-Z_]+)-id([0-9]+).html$ index.php?purl=$1&id=$2 [L,NC]
 
Status
Not open for further replies.
Top