Skip to main content
  1. Oldposts/

Remove query strings from URL’s with mod_rewrite

·32 words·1 min

If you need to strip query strings from a URL with mod_rewrite, you can use a rewrite syntax such as the following:

RewriteEngine on
RewriteCond %{QUERY_STRING} "action=register" [NC]
RewriteRule ^/. http://www.domain.com/registerpage.html? [R,L]