Forum Moderators: phranque
Welcome to WebmasterWorld!
You can use RewriteCond %{QUERY_STRING} (.*) in mod_rewrite to test and manipulate the query string.
See our forum charter [webmasterworld.com] for references.
Jim
Try this: RewriteRule ^([0-9]+)/?$ /whatever.php?variablename=$1 [QSA,L]
In my case (and example) if someone types in [widgets.com...] it redirects (seamlessly) to [widgets.com...]
In my case, I'm using numbers instead of words.
[edited by: paull2k at 8:10 am (utc) on Mar. 23, 2005]
All I need is for it to redirect /page/xx to /?page=xx, without having to add several lines for each separate page