Jump to content

another mod rewrite q.


poe

Recommended Posts

 

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.