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... Link to comment https://forums.phpfreaks.com/topic/81141-another-mod-rewrite-q/ 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? Link to comment https://forums.phpfreaks.com/topic/81141-another-mod-rewrite-q/#findComment-411940 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.