I had a question about a problem I am having with a rewrite rule, I want to make a rewrite rule that gets everything after the hyphen, but it just gets the last word?
My Link:
http://www.website.com/home/24-nieuws/143-kip-kip-kip-donington.html
I have the following rule:
RewriteRule ^home/24-nieuws/(.*)-(.*).html$ http://www.website.com/$2 [R=301,L]
This rule gives me a weird output, well I find it weird, but It could because a hyphen is used as a regex character?
Output:
http://www.website.com/donington
It skips all of the text and just gets the last word? Does anyone know what I have to do to make it get everything between the first hyphen and the .html?