私は、私のサイトを訪問するとき、私はこのような何かを参照してください:の/ テストサイトにアクセスしたときに "Index of /"を取り除く方法は? [ワードプレス]
- ワードプレス/
指数は、これがどのように見えるかのファイルディレクトリです。
.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
私はので、私がexample.comを訪問し、私はの/インデックスとページのリストせずに私のWordPressのサイトを見るとそれを行うために何が必要ですか?
# 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
'.htcaccess'ファイル?それはApacheが探しているものではありません。それは '.htaccess'です。 'allowoverrides'を介してsiを行うことを許可された場合のみ –
[Joomlaの可能な複製 - ホームページとして"/"の代わりにindex.phpを使用する](http://stackoverflow.com/questions/24259815/joomla-use-index- php-as-as-homepage) – bated