This should actually be an easy exercise in Apache with mod_rewrite and every one of it's versatility. I've verified the Rewrite module is dealing with full logging but regardless of how I shake out my rules and scenarios, I can not get results.

Things I want would be to rewrite the next url:

to transform to:

... within the location/address bar from the browser in order to take away the stupid x y coordinate values which are there due to a picture submit button. Every bit of url cleansing helps permanently Search engine optimization practices.

Here's what I've during my httpd-vhosts.conf in /etc/apache2/extra folder on Snow Leopard OS X...

RewriteCond %{QUERY_STRING} ^query=(.*)$ [NC]
RewriteRule ^search /search?query=%1? [L]

Any advice could be much appreciated.


you need to take away the ^ prior to the query, otherwise it don't match the x=10&y=10&query=search+text

RewriteCond %{QUERY_STRING} query=(.*)$ [NC]
RewriteRule ^/search /search?query=%1? [L]