打开了Fancy URL
我的解决方案是在两个文件中给$CONF['Self']全部加上“/”,然后在globalfunctions.php的823行起,把那些加到item/member等词前面的“/”(共7个)全部去掉。然后就彻底OK了。反映到Bug report上,还没人回。
评论
kreny:
kreny:
在 http://linux.dalouis.com/blog/下面
测试成功了,以下是我的rewrite
RewriteRule ^/blog/archive/([a-z0-9]+)$ /blog/index.php?archive=$1
RewriteRule ^/blog/archives/([a-z0-9]+)$ /blog/index.php?archivelist=$1
RewriteRule ^/blog/archive/([a-z0-9]+)/([a-z0-9]+)-([a-z0-9]+)$ /blog/index.php?archive=$2-$3\&blogid=$1
RewriteRule ^/blog/item/([0-9a-z]+)$ /blog/index.php?itemid=$1
RewriteRule ^/blog/archivelist/([a-z0-9]+)$ /blog/index.php?archivelist=$1
RewriteRule ^/blog/blog/([0-9a-z]+)$ /blog/index.php?blog=$1
kreny:
补充一下
应该是
RewriteRule ^/blog/archive/([a-z0-9]+)$ /blog/index.php?archive=$1
RewriteRule ^/blog/archives/([a-z0-9]+)$ /blog/index.php?archivelist=$1
RewriteRule ^/blog/archive/([a-z0-9]+)/([a-z0-9]+)-([a-z0-9]+)$ /blog/index.php?archive=$2-$3\&blogid=$1
RewriteRule ^/blog/archive/([a-z0-9]+)/([a-z0-9]+)-([a-z0-9]+)-([a-z0-9]+)$ /blog/index.php?archive=$2-$3-$4\&blogid=$1
RewriteRule ^/blog/item/([0-9a-z]+)$ /blog/index.php?itemid=$1
RewriteRule ^/blog/archivelist/([a-z0-9]+)$ /blog/index.php?archivelist=$1
RewriteRule ^/blog/blog/([0-9a-z]+)$ /blog/index.php?blog=$1
RewriteRule ^/blog/([a-z0-9]+)/([a-z0-9]+)/([a-z0-9]+)/([a-z0-9]+)$ /blog/index.php?$1=$2\&$3=$4
cathayan:
不好意思,时间长了,几乎看不懂了。我这里只是用人家的虚拟主机,对Apache的设置都不知道,更没有自己的设置,碰巧摸索出来而已。
kreny:
阿~没事儿没事儿,反正搞定了~ 嘿嘿嘿。
就是还有一个插件想问一下,就是一篇文章太长,怎么样取其前面一部分阿~ 然后再点击全文进入....
我来评论
广告见之即删。带有任何赢利机构链接的评论都会删除。

您好,关于这个问题,我也有点疑问。
在index.php中设置为
$CONF['Self'] = '/ling/';
在fancyurls.config.php 中设置为
$CONF['Self'] = '/ling/';
这个时候,我没有copy .htaccess文件,而是保持其为空。
但是我在apache里面进行了以下设置
Alias /ling “/home/ling/public_html”
(我没有设立 ling这个用户)
<Directory “/home/ling/public_html”>
(省略)
</Directory>
rewriteEngine On
RewriteRule ^/ling/item/([0-9]+)$ /ling/index.php?itemid=$1
始终不行,不知道为什么,按照你的解决方案已经把globalfunctions.php 里面的一些/去掉了
谢谢