<

.htaccessの事。+dokuwiki.phpを消したい

デフォルトだとdokuwiki.phpが8800のアクセスで付きます。こいつを消すのに

必要な情報が.htaccess関連です。

 

wikiのトップに .htaccess.distが有りますがこいつの事です。

ただphp消すのにリネームは出来ないので

d:\とかに飛ばして

コマンドプロントで

d:

 

REN .htaccess.dist .htaccess

で改変しますwin上からはこの操作は出来ません。

 

次にconf/local.phpを開き

$conf['userewrite'] = 1;

を追加します書き込み許可みたいなものです。

 

次は.htaccessの改変です。(コピペはせず理屈を覚えて下さい

## Don't allow access to git directories
<IfModule alias_module>
RedirectMatch 404 /\.git
</IfModule>

## Uncomment these rules if you want to have nice URLs using
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
RewriteEngine on
#
RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
RewriteRule ^$ doku.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php
#
## Not all installations will require the following line. If you do,
## change "/dokuwiki" to the path to your dokuwiki directory relative
## to your document root.
#RewriteBase /dokuwiki
#

 

# とはコメントアウトですね。

RewriteRule

のヤツをコメントアウトでokです。