0
當我訪問我的網站我看到這樣的事情:當我訪問我的測試網站時,如何擺脫「Index of /」? [WordPress的]
指數/- 的wordpress/
這是目錄看起來是什麼文件,如:
個 .htaccess文件:
# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working
RewriteBase/
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
enter code here
# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working
RewriteBase/
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
enter code here
什麼我需要做的,這樣,當我訪問example.com和我看到了我的WordPress網站無/的指數和頁面列表?
'.htcaccess'文件?這不是apache所期望的。它是'.htaccess'。並只有當被允許通過'allowoverrides'執行si時, –
[Joomla-使用index.php而不是「/」作爲主頁]的可能重複(http://stackoverflow.com/questions/24259815/joomla-use-index- PHP的INSTEAD-OF-AS-主頁) – bated