如何在 mod_alias 中的 URL 路径中使用空格重定向指令?
继 链接文本,我也遇到了包含空格的文件路径的问题。有人告诉我只需将完整路径括在引号中,这应该可行,但我不断在网站站长工具错误日志中将此页面标记为未找到:
redirect 301 /"News/Press Releases/Press_Release_Update_Oct_2006.pdf" /index.html
仍然给我一个 404。
谢谢马丁
Following on from link text, I've also got problems with file paths that contain spaces. I was told to simply enclose the full path in quotes, and that should work, but I keep getting this page marked up in my Webmaster Tools error log as not being found:
redirect 301 /"News/Press Releases/Press_Release_Update_Oct_2006.pdf" /index.html
still gives me a 404.
Thanks Martin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过将引号放在 / 之前?
Have you tried putting the quote before the /?