Any Way To Cut Off URL Query Strings?

Status
Not open for further replies.

kjb1891

New member
Mar 12, 2007
216
1
0
Is there a way to cut query strings off of URLs when they're displayed?

For example:
domain.com/subfile/?querystring --> domain.com/subfile/
 


Is there a way to cut query strings off of URLs when they're displayed?

For example:
domain.com/subfile/?querystring --> domain.com/subfile/

Code:
RewriteEngine on
RewriteCond %{QUERY_STRING} .
RewriteRule (.*) /$1? [R=301]
 
Status
Not open for further replies.