Forum Moderators: phranque
What I have now is:
RewriteRule ^([0-9]+)-([a-z]+)$ articles.php?url=$2&id=$1 [nc]
example:
10-mullets
will show content from:
articles.php?url=mullets&id=10
-BUT-
12-rat-tails
will not show:
articles.php?url=rat-tails&id=12
I think this is because I used ([a-z]+) which would only allow letters when I really want to allow letters and symbols. Any suggestions how I can fix this?
You'll need to use a separate character for these two functions, otherwise mod_rewrite will do what you say, and not what you want... :(
You could use '-' for field separators and '+' to replace spaces, just for example. But neither character can then appear in the 'clear text' 'real name' of an item.
Jim