重定向%20%E2%80%8E重定向

由网友(一鹿晗着泪走)分享简介:我有这样的客户是发送带有 HTTP电子邮件:// URL /%20%E2%80%8E ,每个人都得到一个404没有找到。于是,他问我要重定向和我虽然肯定容易。但它看起来像没有工作......请帮助!I have this customer that send an email with http://url/%20%...

我有这样的客户是发送带有 HTTP电子邮件:// URL /%20%E2%80%8E ,每个人都得到一个404没有找到。于是,他问我要重定向和我虽然肯定容易。但它看起来像没有工作......请帮助!

I have this customer that send an email with http://url/%20%E2%80%8E and everyone is getting a 404 not found. So he asked me for a redirection and I though sure easy. But it looks like is not working... please help!!

我尝试这样做:

 redirect 301 /%20%E2%80%8E http://url/promo-content/
 and
 redirect 301 /%20%E2%80%8E http://url/promo-content/

和不工作。

我也试过这种

  RewriteEngine on
  RewriteCond %{REQUEST_URI} ^/([a-zA-Z0-9_-]+)/%20%E2%80%8E$
  RewriteRule ^(.*) http://url/promo-content/%1/ [R,L]

但仍然没有工作......任何sugestion ???

But still not working... any sugestion???

推荐答案

的URI得到德codeD第一mod_rewrite规则应用之前。尝试:

The URI gets decoded first before mod_rewrite rules are applied. Try:

RewriteEngine On
RewriteRule ^ ‎ /promo-content/ [L,R=301]
阅读全文

相关推荐

最新文章