Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
继链接文本之后,我也遇到了包含空格的文件路径的问题。有人告诉我只需用引号将完整路径括起来,这应该可以,但我一直在我的网站管理员工具错误日志中将此页面标记为未找到:
redirect 301 /"News/Press Releases/Press_Release_Update_Oct_2006.pdf" /index.html
仍然给我一个404。
谢谢马丁
您是否尝试将引号放在 / 之前?
redirect 301 "/News/Press Releases/Press_Release_Update_Oct_2006.pdf" /index.html