내 서버에 'dokuwiki'를 설치했습니다.
/usr/share/wiki
폴더에 저장됩니다.
경로가 /usr/share/wiki/doku.php
왜이 .htaccess가 작동하지 않습니까?
내가 액세스했을 때 http://example.com/wiki/start에 404가 없습니다.
.htaccess의 문제점은 무엇입니까? 뭔가 잘못 RewriteBase와 함께이 있다면
나는 의심
htaccess로
## Enable this to restrict editing to logged in users only
## You should disable Indexes and MultiViews either here or in the
## global config. Symlinks maybe needed for URL rewriting.
#Options -Indexes -MultiViews +FollowSymLinks
## make sure nobody gets the htaccess files
<Files ~ "^[\._]ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
## Uncomment these rules if you want to have nice URLs using
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
RewriteEngine on
#
## 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 /wiki
#
## If you enable DokuWikis XML-RPC interface, you should consider to
## restrict access to it over HTTPS only! Uncomment the following two
## rules if your server setup allows HTTPS.
RewriteCond % !=on
RewriteRule ^lib/exe/xmlrpc.php$ https://%% [L,R=301]
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 % !-f
RewriteCond % !-d
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php
등/당신의 로컬 호스트에서 정상적으로 작동 아파치/conf.d
# enter the following in pico
Alias /wiki/ "/usr/share/wiki/"
Alias /wiki "/usr/share/wiki/"
<Directory "/usr/share/wiki/" >
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Deny from none
</Directory>
전체 코드를 .htaccess로 대체 하시겠습니까? – Foo
여전히 동일합니다 ... – Foo
이 부분을 확인해 주시겠습니까? https://www.dokuwiki.org/rewrite – Foo