【发布时间】:2012-02-03 18:51:09
【问题描述】:
我遇到了包含以下格式的转义换行符的错误 URL:
http://domain.com/%0Apath/to/file.txt
但是,即使我尝试了最全局的重写...
RewriteRule ^.*$ /path/to/file.txt [R=301,L]
...Apache 仍然抛出 404:
The requested URL / path/to/file.txt was not found on this server.
(Note the space.)
如何优雅地拦截这些不良 URL 并将它们路由到正确的目的地?
【问题讨论】:
-
你有没有得到这个问题的答案?
标签: apache .htaccess url rewrite