Forum Moderators: phranque
I have tried many times to add a little rewrite code in my .htaccess file to strip the query string and just show www.example.com, especially to bots. What would be a relatively easy way of doing that?
Thanks for the help.
Here's what I used...
RewriteCond %{query_string} .
rewriterule (.*) http://www.example.com/$1? [R=301,L]
I assume that, because it is a 301 redirect, the search engine bots will also see my URLs without the query strings?