hi guys, I need to know how to do this. URL is http://test.com/website-description-here-644.htm how to grab the "644" into a variable called newsid ? keep in mind that some links may not always carry the same amount of hypens
If im not mistaken, you can not create a variable with that name, instead you can refer using $1. website\-description\-here\-([0-9]+)\.htm$
Got it working now actually, thanks. Demo: http://www.exophase.com/index.php I did: RewriteRule ^(.*)-(.*)\.htm$ /?title=$1&newsid=$2 [L]