鼠窝空间常用程序DZ-PW-UC等伪静态使用说明及规则
本帖最后由 22634206 于 2010-7-16 19:15 编辑PHPWIND 后台开启伪静态即可使用! 具体在PW后台开启伪静态处有说明!(PW的这点做的挺人性的)
Discuz! 需要在空间上传一个.htaccess的文件放在论坛的根目录下,方可开启伪静态!
如果您想继续美化您的伪静态请到官方搜索关键词:rewrite伪静态 规则
欢迎使用鼠窝空间,建议您使用商业空间,支持鼠窝的发展========
========鼠窝空间,真的是免费的,真的是很强大的,真的是免备案的 ========
=======使用鼠窝空间你才知道,原来国内的那么多IDC提供商的空间很逊========
===免费提供鼠窝空间用户使用DZ/PW遇到的问题,转换,空间搬家,偶也很逊,只能尽力而为之===
======== www.01161.com ==QQ:88214282(长期隐身) == TEL: 三级保密中 ========
其它程序的伪静态使用都类似如果直接启用伪静态不成功【在空间上传.htaccess的文件放在该程序的根目录下】
下面楼层有众多程序规则,使用方法一样/同理! RewriteEngine On
RewriteBase /
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-(+)-(+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-(+)-(+)-(+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1 phpwindRewriteEngine On
RewriteRule ^archiver/ /simple/
RewriteRule ^fid-(\d+)\.html /simple/index.php\?f$1.html
RewriteRule ^fid-(\d+)-page-1.html /simple/index.php\?f$1.html
RewriteRule ^tid-(\d+)-page-1.html /simple/index.php\?t$1.html
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/(+\.html)$ $1/simple/index.php?$2 PHPWINDnginx伪静态规则location / {
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
rewrite ^(.*)/simple/(+\.html)$ $1/simple/index.php?$2 last;
} BOBLOGRewriteEngine on
RewriteBase /
#New rules since 2.1.0 beta 2
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ -
RewriteRule ^post/(+)/?(+)?/?(+)?/?$ read.php?entryid=$1&page=$2&part=$3
RewriteRule ^page/(+)/(+)/?$ index.php?mode=$1&page=$2
RewriteRule ^starred/(+)/?(+)?/?$ star.php?mode=$1&page=$2
RewriteRule ^category/([^/]+)/?(+)?/?(+)?/?$ index.php?go=category_$1&mode=$2&page=$3
RewriteRule ^archiver/(+)/(+)/?(+)?/?(+)?/?$ index.php?go=archive&cm=$1&cy=$2&mode=$3&page=$4
RewriteRule ^date/(+)/(+)/(+)/?(+)?/?(+)?/?$ index.php?go=showday_$1-$2-$3&mode=$4&page=$5
RewriteRule ^user/(+)/?$ view.php?go=user_$1
RewriteRule ^tags/([^/]+)/?(+)?/?(+)?/?$ tag.php?tag=$1&mode=$2&page=$3
RewriteRule ^component/id/(+)/?$ page.php?pageid=$1
RewriteRule ^component/([^/]+)/?$ page.php?pagealias=$1
#Force redirection for old rules
RewriteRule ^post/(+)\.htm$ post/$1/
RewriteRule ^post/(+)\_(+)\.htm$ post/$1/$2/
RewriteRule ^post/(+)\_(+)\_(+)\.htm$ post/$1/$2/$3/
RewriteRule ^index\_(+)\_(+)\.htm$ page/$1/$2/
RewriteRule ^star\_(+)\_(+)\.htm$ starred/$1/$2/
RewriteRule ^category\_(+)\.htm$ category/$1/
RewriteRule ^category\_(+)\_(+)\_(+)\.htm$ category/$1/$2/$3/
RewriteRule ^archive\_(+)\_(+)\.htm$ archiver/$1/$2/
RewriteRule ^archive\_(+)\_(+)\_(+)\_(+)\.htm$ archiver/$1/$2/$3/$4/
RewriteRule ^showday\_(+)\_(+)\_(+)\.htm$ date/$1/$2/$3/
RewriteRule ^showday\_(+)\_(+)\_(+)\_(+)\_(+)\.htm$ date/$1/$2/$3/$4/$5/
#Customized URL
RewriteRule ^([^\/]*)\.html$ $1/
RewriteRule ^([^/|.]*)/?(+)?/?(+)?/?$ read.php?blogalias=$1&page=$2&part=$3 BOBLOG nginx伪静态规则if (!-e $request_filename)
{
rewrite ^/post/(+)/?(+)?/?(+)?/?$ /read.php?entryid=$1&page=$2&part=$3 last;
rewrite ^/page/(+)/(+)/?$ /index.php?mode=$1&page=$2 last;
rewrite ^/starred/(+)/?(+)?/?$ /star.php?mode=$1&page=$2 last;
rewrite ^/category/([^/]+)/?(+)?/?(+)?/?$ /index.php?go=category_$1&mode=$2&page=$3 last;
rewrite ^/archiver/(+)/(+)/?(+)?/?(+)?/?$ /index.php?go=archive&cm=$1&cy=$2&mode=$3&page=$4 last;
rewrite ^/date/(+)/(+)/(+)/?(+)?/?(+)?/?$ /index.php?go=showday_$1-$2-$3&mode=$4&page=$5 last;
rewrite ^/user/(+)/?$ /view.php?go=user_$1 last;
rewrite ^/tags/([^/]+)/?(+)?/?(+)?/?$ /tag.php?tag=$1&mode=$2&page=$3 last;
rewrite ^/component/id/(+)/?$ /page.php?pageid=$1 last;
rewrite ^/component/([^/]+)/?$ /page.php?pagealias=$1 last;
#Force redirection for old rules
rewrite ^/read\.php/(+)\.htm$ http://$host/post/$1/ permanent;
rewrite ^/post/(+)\.htm$ http://$host/post/$1/ permanent;
rewrite ^/post/(+)\_(+)\.htm$ http://$host/post/$1/$2/ permanent;
rewrite ^/post/(+)\_(+)\_(+)\.htm$ http://$host/post/$1/$2/$3/ permanent;
rewrite ^/index\_(+)\_(+)\.htm$ http://$host/page/$1/$2/ permanent;
rewrite ^/star\_(+)\_(+)\.htm$ http://$host/starred/$1/$2/ permanent;
rewrite ^/category\_(+)\.htm$ http://$host/category/$1/ permanent;
rewrite ^/category\_(+)\_(+)\_(+)\.htm$ http://$host/category/$1/$2/$3/ permanent;
rewrite ^/archive\_(+)\_(+)\.htm$ http://$host/archiver/$1/$2/ permanent;
rewrite ^/archive\_(+)\_(+)\_(+)\_(+)\.htm$ http://$host/archiver/$1/$2/$3/$4/ permanent;
rewrite ^/showday\_(+)\_(+)\_(+)\.htm$ http://$host/date/$1/$2/$3/ permanent;
rewrite ^/showday\_(+)\_(+)\_(+)\_(+)\_(+)\.htm$ http://$host/date/$1/$2/$3/$4/$5/ permanent;
#Filename alias
rewrite ^/(+)/?(+)?/?(+)?/?$ /read.php?blogalias=$1&page=$2&part=$3 last;
}
SupeSiteX-Space Rewrite### 修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 /
RewriteBase /supesite
### Rewrite 系统规则请勿修改
RewriteRule ^(+)/spacelist(.+)$ index.php?uid/$1/action/spacelist/type$2
RewriteRule ^(+)/viewspace(.+)$ index.php?uid/$1/action/viewspace/itemid$2
RewriteRule ^(+)/viewbbs(.+)$ index.php?uid/$1/action/viewbbs/tid$2
RewriteRule ^(+)/(.*)$ index.php?uid/$1/$2
RewriteRule ^(+)$ index.php?uid/$1
RewriteRule ^action(.+)$ index.php?action$1
RewriteRule ^category(.+)$ index.php?action/category/catid$1
RewriteRule ^viewnews(.+)$ index.php?action/viewnews/itemid$1
RewriteRule ^viewthread(.+)$ index.php?action/viewthread/tid$1
RewriteRule ^mygroup(.+)$ index.php?action/mygroup/gid$1 啊,学习了 啊,学习了
hyman01 发表于 2010-2-4 19:59 http://www.shuwo.org/images/common/back.gif
你真赶上直播....
哎中间插广告了,哎! UCenter HomeRewriteEngine on
RewriteBase /
RewriteRule ^(space|network)\-(.+)\.html$ $1.php?rewrite=$2
RewriteRule ^(space|network)\.html$ $1.php
RewriteRule ^(+)$ space.php?uid=$1