【发布时间】:2013-10-21 08:07:59
【问题描述】:
我正在尝试在我的 .htaccess 中执行从“http://example.com/article.htmk”到“http://example.com/article.htm”的 301 重定向。我试过了,
Redirect 301 "http//example.com/article.html k" http://example.com/article.htm
如上,并用 %20 和 [\s] 代替 k 的空格。这些似乎都不起作用。我在想问题是因为空间在 .htm 之后而不是在它之前。关于如何解决这个问题或问题可能是什么的任何想法?谢谢。
【问题讨论】:
-
RTFM: “旧的 URL 路径是以斜杠开头的区分大小写(% 解码)的路径。”