poe Posted December 11, 2007 Share Posted December 11, 2007 how would i write this if i want to accept any alpha [a-zA-Z] and or either : single underscore '_' or singleunderscore ampsign underscore '_&_' i dont think [a-zA-Z_(&_)] is correct. RewriteRule (.*)mod_category/[a-zA-Z_(&_)]/?$ mod_category.php [L] so a url that is: mod_category/catname/ = ok mod_category/cat_name/ = ok mod_category/cat_&_name/ = ok but mod_category/cat__name/ = not ok (multiple _) mod_category/cat_#_name/ = not ok (# invalid character) etc... Quote Link to comment Share on other sites More sharing options...
effigy Posted December 11, 2007 Share Posted December 11, 2007 This could be difficult. Why not have mod_category.php validate the category? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.