如何在 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
您是否尝试过将引号放在 / 之前?
Have you tried putting the quote before the /?