Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 正在尝试重定向htaccess文件中的301%E2%80%A6_Html_.htaccess_Redirect - Fatal编程技术网

Html 正在尝试重定向htaccess文件中的301%E2%80%A6

Html 正在尝试重定向htaccess文件中的301%E2%80%A6,html,.htaccess,redirect,Html,.htaccess,Redirect,我在我的谷歌网站管理员工具中有一个链接,它来自一个错误发布我链接的大网站。通过多次尝试让他们改变它,我将301链接到正确的页面,因为我想要那个链接。问题是,在我的GWT中,它将链接显示为 如果将鼠标放在链接上,它看起来像 我尝试了我的htaccess文件,但没有成功 Redirect 301 /...crabble-word-finder http://www.mydomain.com/scrabble-word-finder/ Redirect 301 "/...crabble-word

我在我的谷歌网站管理员工具中有一个链接,它来自一个错误发布我链接的大网站。通过多次尝试让他们改变它,我将301链接到正确的页面,因为我想要那个链接。问题是,在我的GWT中,它将链接显示为

如果将鼠标放在链接上,它看起来像

我尝试了我的htaccess文件,但没有成功

Redirect 301 /...crabble-word-finder http://www.mydomain.com/scrabble-word-finder/
Redirect 301 "/...crabble-word-finder" http://www.mydomain.com/scrabble-word-finder/


你知道如何让这个重定向正常工作吗?

如果你只是想将/%E2%80%a6 Crable word finder重定向到/scrabble word finder/中,那么你可以试试这个。htaccess代码:


刚才考虑了带有此链接的
[R=301]
标志:

一些黑客试图使用此类重定向来攻击站点

如果他们成功重定向,那么他们会尝试通过表单注入看似无害的内部链接,以便将流量重定向到他们的站点和/或获得链接果汁a-la页面排名。

尝试使用引号:

RewriteEngine on
RewriteRule ^%E2%80%A6crabble-word-finder/?$ /scrabble-word-finder/ [R]
Redirect 301 "/...crabble-word-finder" http://www.mydomain.com/scrabble-word-finder/