Forum Moderators: phranque
I am really an idiot when it comes to redirects.. ;-)
I am trying to get rid of all query strings in my URLs - like this:
www.example.com/topic.htm?ref=another-eaxmple.org
First I tried to simple do a htaccess like this:
User-agent: *
Disallow: /*?
But that does not seems to work. Then I read this thread:
[webmasterworld.com...]
And did it like this:
RewriteCond %{QUERY_STRING} .
RewriteRule (.*) http://www.example.com/$1? [R=301,L]
But nothing happend.
I like www.example.com/topic.htm?ref=another-eaxmple.org to be redirected to www.example.com/topic.htm and www.example.com/?ref=another-eaxmple.org to be redirected to www.example.com
Anyone has any ideas why this is not working?
Thanks