I am moving hosts and the URL structure will change as the new site (same domain name) will be done the Wordpress.
I have many URL's where the first part of the page name is the same and they all need to be redirected to a single page on the new site. For example.
http://www.example.com/binfet-timeinthepark.htm
http://www.example.com/binfet-backtothecity.htm
http://www.example.com/binfet-justmeetmehalfway.htm
all need to go to:
http://www.example.com/bev-binfet/
Is there a way to write a rule to capture all of these? There are about 50 different cases ie. In this example "binfet" is at the beginning but are about 50 different names.
UPDATE
In response to @Fayaz
I have about 50 cases where the URL's begin with the same name but then have different endings. For each case all URL's for that case go to a single new page.
Eg.
http://www.example.com/xyz-sometext.htm
http://www.example.com/xyz-someothertext.htm
...
all go to a single new URL
http://www.example.com/xyznewplace/
http://www.example.com/xyz-sometext.htm
redirects tohttp://www.example.com/xyz-new
, can I say from it thathttp://www.example.com/abc-someothertext.htm
will redirect tohttp://www.example.com/abc-new
? The reason I'm asking is because if there is a pattern then your rewrite will be small, otherwise you'll have to write 50RewriteRule
, one for each group.