regex - How do I mod_rewrite this URL? -


i have url

www.domain.com/catalog.php?category_title=widgets

i want mod_rewrite

www.domain.com/widgets/

i've tried

rewriteengine on rewriterule /([^/.]+)/[?]*[^\/\.]*$ /catalog.php?category_title=$1 

so i'm searching /([^/.]+)/

the [?]*[^\/\.]* part page can work google adwords appends query string flat url.

this regex worked on a previous implementation using zeus's request rewrite module proprietary version of mod_rewrite.

this first go @ apache mod_rewrite, , can't work.

try using:

rewriteengine on rewriterule ^([^/]*)/$ /catalog.php?category_title=$1 [l] 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -