且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apache的URL重写将无法正常工作

更新时间:2023-02-24 09:38:32

它的工作!我把code在错误的地方。这是在httpd.conf,但最后。将它变成<名录及GT;其良好的。感谢您的帮助!

It Worked!! I was putting the code in the wrong spot. It was in httpd.conf, but at the end. Move it into <Directory> and its good. Thanks for your help!

编辑:另外,我发现,如果标志都是这样它不会工作: [L,NC] 。它必须是 [L,NC] (无空格)。

Also, I found that It won't work if the flags are like this: [L, NC]. It has to be [L,NC] (no spaces).

所以,这两个问题在哪里,这是不是里面&LT;目录/库/ Web服务器/文件&gt;和有标志之间的空格。希望这会帮助别人,将来别人。

So the two problems where that it wasn't inside <Directory "/Library/WebServer/Documents">, and there were spaces between the flags. Hopefully this will help someone else in the future.