HTACCESS 301 redirect issue with strange url variables

Emily Scarpetta


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?

Jon Lin

Try just:

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

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

htaccess 301 redirect only certain URL with exlusion

分類Dev

Redirect 301 in htaccess changes the url encoding

分類Dev

.htaccess 301 redirect rule

分類Dev

htaccess 301 Redirect to Subdomain

分類Dev

How can I redirect (301) with htaccess URL with percent?

分類Dev

301 .htacess redirect issue

分類Dev

redirect htaccess with php variables and rewrite url

分類Dev

htaccess 301 redirect not working properly

分類Dev

.htaccess 301 redirect conflicting with rewriterule

分類Dev

301 redirect with query parameters and ~ in URL

分類Dev

Htaccess 301 redirect with query string params

分類Dev

Redirect 301 Urls with id number htaccess

分類Dev

301 htaccess redirect forwarding to incorrect address

分類Dev

.htaccess dynamic URL redirect

分類Dev

htaccess redirect with complete url

分類Dev

How to 301 redirect with same url structures?

分類Dev

301 redirect subfolder while maintaining trailing URL

分類Dev

.htaccess Redirect from URL with parameters

分類Dev

.htaccess 500 internal server error when adding simple 301 redirect

分類Dev

.htaccess - 301 redirect move all pages to https:// - except 1 page?

分類Dev

.htaccess redirect of a url to a url friendly subdomain

分類Dev

Response.Redirect(url) shows a 301 and a 302 in the firefox developer console

分類Dev

how to do 301 redirect of the same URL with a difference in hypen

分類Dev

IIS 7.5 UrlRewrite rule for 301 redirect to lowercase url

分類Dev

.htaccess 301パスURLの再構築?

分類Dev

.htaccess redirect only working for part of the URL

分類Dev

.htaccess - Redirect

分類Dev

htaccessリダイレクト301をURLからURLに

分類Dev

Redirect a url along with .htaccess and re-write rules gone wrong

Related 関連記事

ホットタグ

アーカイブ