Welcome to WebmasterWorld Guest from 220.127.116.11
i have a old pages and their names like
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
but it doesn't work...
i think there is hyphen problem, What am I doing wrong? or another suggestions?
Please consider also i have another pages have more than 3 hyphen.
My google friendly site has a lot of pages like
as you see they contain different number of hyphen.
i want to send some of them special variable for example
so their name must be change to
But long or short names cause problem while writing ReWriteRule
How can i keep page names with hyphens and add them keyworda that contain hyphen?
# handle "view=24" case
RewriteRule ^(view-[0-9]+)-([^.]+)\.htm$ $2.htm?var=$1 [NC,L]
# handle other cases
RewriteRule ^([0-9a-z]+)-([^.]+)\.htm$ $2.htm?var=$1 [NC,L]