【问题标题】:301 permanent redirect not working in htaccess301 永久重定向在 htaccess 中不起作用
【发布时间】:2014-01-14 10:33:21
【问题描述】:

我们正面临像“http://domain.com/p/post-content/%3Ca%20href=”这样的网址,当我们尝试重定向类似的东西时,这些网址会产生 404 错误

Redirect 301 /p/post-title/<a href= /p/post-title/

但它不起作用,请任何人告诉我,如何像这样重定向网址

【问题讨论】:

  • 这是什么&lt;a href=???
  • 这些 html 标签包含在 urls 中,它是 urls 中的某种错误

标签: .htaccess redirect


【解决方案1】:

多余的空格把语句弄乱了,apache会认为参数太多。试试:

Redirect 301 "/p/post-title/<a href=" /p/post-title/

【讨论】:

    猜你喜欢
    • 2014-09-24
    • 2013-07-17
    • 2018-09-15
    • 2015-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多