开发者

How to use spaces in the URL path in mod_alias’ Redirect directive?

开发者 https://www.devze.com 2022-12-15 05:00 出处:网络
Following on from link text, I\'ve also got problems with file paths that contain spaces.I wa开发者_如何转开发s told to simply enclose the full path in quotes, and that should work, but I keep getting

Following on from link text, I've also got problems with file paths that contain spaces. I wa开发者_如何转开发s 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 /?

redirect 301 "/News/Press Releases/Press_Release_Update_Oct_2006.pdf" /index.html
0

精彩评论

暂无评论...
验证码 换一张
取 消