重定向%20%E2%80%8E [英] Redirect %20%E2%80%8E

查看:224
本文介绍了重定向%20%E2%80%8E的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的客户是发送带有 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]

这篇关于重定向%20%E2%80%8E的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆