Apache設定中正斜線"/"的用法 - Linux

By Mary
at 2012-12-06T09:30
at 2012-12-06T09:30
Table of Contents
請問大家,
在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/
那請問應如何設定呢?
--
Tags:
Linux
All Comments

By Regina
at 2012-12-10T16:01
at 2012-12-10T16:01
Related Posts
和Linux Mint合不來

By George
at 2012-12-06T00:30
at 2012-12-06T00:30
openoffice炸裂

By Kyle
at 2012-12-05T20:38
at 2012-12-05T20:38
如何把用LVM裝的系統變成普通的分割?

By Edith
at 2012-12-05T19:30
at 2012-12-05T19:30
USB安裝CentOS

By Rachel
at 2012-12-05T18:24
at 2012-12-05T18:24
iptables問題

By Ingrid
at 2012-12-05T17:47
at 2012-12-05T17:47