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]