ok, first of all I would like to say I'm a regex IDIOT!. That being said, here's what I got:
RewriteEngine On
RewriteRule ^/([^/\.]+)/deals/([^/\.]+)/?$ index.php?key=$1&permalink=$2
What I'm trying to do is match the following url request paths:
/key-goes-here/deals/permalink-goes-here
/key-goes-here/deals/permalink-goes-here/
The string will always start with /
The string may or may not end with /
The "key-goes-here" part will always be alphanumeric and - (hyphens to separate words)
The "permalink-goes-here" part will always be alphanumeric and - (hyphens to separate words)
Thanks in advance