Emily Scarpetta
Emily Scarpetta

Reputation: 15

HTACCESS 301 redirect issue with strange url variables


google webmaster tool is notifying me a 404 error about the following url:

http://www.giobby.com/&force=1

I added the following rule to htaccess file, but it doesn't work:

RewriteCond %{QUERY_STRING} ^&force=1
RewriteRule ^/?$ http://www.giobby.com/? [L,NC,R=301]

Can someone suggest me the correct rules?

Upvotes: 0

Views: 82

Answers (1)

Jon Lin
Jon Lin

Reputation: 143886

Try just:

RewriteRule ^&force= / [L,NC,R=301]

Upvotes: 1

Related Questions