Greetings all!
I'm just writing a mod_rewrite rule, but wanted to get a few pointers...
For $1 of the URL, it needs to match underscores, all letters (regardless of case) and all numbers.
For $2 of the URL, it needs to match $ - _ . + ! * ' ( ) , all letters (regardless of case) and all numbers.
This is what I have so far:
Have I done this right? How would I add the special characters - Just escape them with a backslash?
Cheers all!
I'm just writing a mod_rewrite rule, but wanted to get a few pointers...
For $1 of the URL, it needs to match underscores, all letters (regardless of case) and all numbers.
For $2 of the URL, it needs to match $ - _ . + ! * ' ( ) , all letters (regardless of case) and all numbers.
This is what I have so far:
Code:
RewriteRule ^zones/([_a-zA-Z0-9-]+)/things/(['_a-zA-Z0-9-]+)/discussion/$ things/discussion_newtopic.php?z=$1&t=$2 [NC]
Have I done this right? How would I add the special characters - Just escape them with a backslash?
Cheers all!