2010-09-03 15 views
0

我在我的服務器上有一個名爲dvd的文件夾,我已經把一個索引文件放在這個文件夾中。如果我直接進入/dvd/index.html,我可以查看該文件。但是,如果我只去/ dvd /我得到一個403禁止的錯誤。我確定我可以允許訪問/ dvd /文件夾,但我無法弄清楚。下面是我目前使用的文件匹配代碼。有人能告訴我什麼是我應該做的?由於.htaccess文件正在保護我所有的目錄。我如何允許訪問一個?

<FilesMatch "\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$"> 
    Order allow,deny 
</FilesMatch> 
+0

這屬於serverfault。 – 2010-09-03 10:22:48

回答

1

添加

的DirectoryIndex index.html的

到的.htaccess,好像它沒有設置,如果你可以直接查看。

+0

我是否將這添加到filesmatch標記中? – Drew 2010-09-03 10:35:05

+0

原來有一個類似的標籤已經在頁面上,但它要求index.php。只需將我的文件的名稱更改爲index.php。謝謝! – Drew 2010-09-03 10:36:36

相關問題