supesite的rewrite规则引起的php出错问题
上一篇 /
下一篇 2007-05-10 16:40:48
/ 精华(4)
supesite5.5版的rewrite规则为
RewriteEngine On
### Rewrite 系统规则请勿修改
RewriteRule ^/([0-9]+)/spacelist(.+)$ /index.php?uid/$1/action/spacelist/type$2 [L]
RewriteRule ^/([0-9]+)/viewspace(.+)$ /index.php?uid/$1/action/viewspace/itemid$2 [L]
RewriteRule ^/([0-9]+)/viewbbs(.+)$ /index.php?uid/$1/action/viewbbs/tid$2 [L]
RewriteRule ^/([0-9]+)/(.*)$ /index.php?uid/$1/$2 [L]
RewriteRule ^/([0-9]+)$ /index.php?uid/$1 [L]
RewriteRule ^/action(.+)$ /index.php?action$1 [L]
RewriteRule ^/category(.+)$ /index.php?action/category/catid$1 [L]
RewriteRule ^/viewnews(.+)$ /index.php?action/viewnews/itemid$1 [L]
RewriteRule ^/viewthread(.+)$ /index.php?action/viewthread/tid$1 [L]
RewriteRule ^/mygroup(.+)$ /index.php?action/mygroup/gid$1 [L]
这样的话导致我原来站点目录下以数字开头命名的php直接跳到了该数字指向的用户空间,而不是我的php程序。
例如我有/16you.php这个程式,在运用了supesite的rewrite规则的情况下访问http://www.xxx.com/16you.php时将转向16这个用户ID的空间,没有的话将提示无法找到该页。
这算不算bug,但我觉得至少应该兼容我说的这种情况,要不系统兼容性就不太好了,毕竟supesite现在还不能代替所有的程式功能,也就可能有大量的站长使用自己定义的程式。
导入论坛
引用链接
收藏
分享给好友
管理
举报
TAG: