請問大家,
在Apache設定中,
加"/"或不加"/"有什麼區別呢?
說明文件中有的有加有的又沒加,
有加沒有加很多時候又都不太一樣,
大困擾中...
例如:1.<Directory /example>跟<Directory /example/>?
2.網址列中打http://foo.com/example or http://foo.com/example/
如果我希望使用者在2.網址中不論是有加"/"都能正確連至http://foo.com/example/
那請問應如何設定呢?
--
在Apache設定中,
加"/"或不加"/"有什麼區別呢?
說明文件中有的有加有的又沒加,
有加沒有加很多時候又都不太一樣,
大困擾中...
例如:1.<Directory /example>跟<Directory /example/>?
2.網址列中打http://foo.com/example or http://foo.com/example/
如果我希望使用者在2.網址中不論是有加"/"都能正確連至http://foo.com/example/
那請問應如何設定呢?
--
All Comments