rewrite rule hyphen problem

Posted By: accelerate ()
Posted On: 2006-Apr-05 17:22

Hi,

i have a old pages and their names like

something-like-this.php

and i want to send them a variable using re write mode but i can't figure out rule...

RewriteRule ^([0-9A-Za-z])-(*.).htm$ $2.htm?var=$1

so i want my page name like below

number-something-like-this.php

but it doesn't work...

i think there is hyphen problem, What am I doing wrong?

Also i have another pages have more than 3 hyphen. Please consider this...

Thanks

[ Message was edited by: accelerate 04/05/2006 10:22 am ]