along 发表于 2013-1-29 16:34:53

PHPDisk Mini 2.0伪静态重写规则

Apache重写规则:RewriteEngine On

RewriteRule ^file-(+)\.html$ phpdisk.php?mod=view&file_id=$1
RewriteRule ^down-(+)\.html$ phpdisk.php?mod=down&file_id=$1
RewriteRule ^space-(.+)\.html$ space.php?username=$1
IIS重写规则:

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)/file-(+)\.html$ $1/phpdisk\.php\?mod=view&file_id=$2
RewriteRule ^(.*)/down-(+)\.html$ $1/phpdisk\.php\?mod=down&file_id=$2
RewriteRule ^(.*)/space-(.+)\.html$ $1/space\.php\?username=$2

Nginx重写规则:

rewrite ^(.*)/file-(+)\.html$ $1/phpdisk.php?mod=view&file_id=$2 last;
rewrite ^(.*)/down-(+)\.html$ $1/phpdisk.php?mod=down&file_id=$2 last;
rewrite ^(.*)/space-(.+)\.html$ $1/space.php?username=$2 last;

zouxiangfu 发表于 2013-1-29 18:19:25

前来占位,貌似快要发布Mini2.0了?

小樱 发表于 2013-1-30 23:54:43

mini1.0还没发布就2.0了?
页: [1]
查看完整版本: PHPDisk Mini 2.0伪静态重写规则