+ -
当前位置:首页 → 问答吧 → 是否是Apache的设置导致链接无法使用冒号:?

是否是Apache的设置导致链接无法使用冒号:?

时间:2009-09-04

来源:互联网

使用xampp_windows搭建本地测试平台,安装dokuwiki后启用.htaccess,但发现链接原本应该是[code]http://localhost/dokuwiki/playground:test[/code]却变成了[code]http://localhost/dokuwiki/playground%3Btest[/code]如果强制输入[code]http://localhost/dokuwiki/playground:test[/code]会提示[code]Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403[/code]但后来我上传到Bluehost测试确正常。
不知是Apache的设置问题还是Windows的问题?
附.htaccess内容[code]## 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
Options +FollowSymlinks
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 /dokuwiki
#
## 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 %{HTTPS} !=on
RewriteRule ^lib/exe/xmlrpc.php$      https://%{SERVER_NAME}%{REQUEST_URI} [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 %{REQUEST_FILENAME}       !-f
RewriteCond %{REQUEST_FILENAME}       !-d
RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php
[/code]

作者: ade   发布时间: 2009-09-04

补充下,设置用斜杠/替换冒号:后正常。

作者: ade   发布时间: 2009-09-04

热门下载

更多