Categories


Tags


apache下常用程序的伪静态规则列表(包括wordpress、thinkphp)

#wordpress

<ifModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

#ThinkPhp

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

</IfModule>

#dzx3.x

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1

</IfModule>

#dzx2.x

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1 [NU]

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1

#shopex4.8

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} \.(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm|xml)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(?!shopadmin)(.*)$ index.php?$1 [L,QSA]

</IfModule>

来源:西部数码


Public @ 2014-09-18 16:11:03

50个有用的网站设计资源

CSS库做设计的时候总是容易没有灵感。到CSS库去看看别人做得设计也许会帮你找到不少灵感。如果你的设计足够优秀让这些CSS库收录的话,那么这还会为你带来很多访问者UnmatchedstylecssBeautycssvaultStylegalaCSS Drivecss thesisStyleboostCSSEliteCSS ImportWeb CremeCSS ManiaDesignShackWeb

Public @ 2017-08-29 15:45:13

顶级域名,一级域名,二级域名,二级目录

顶级域名不带WWW,就是顶级域名,如“xxxx.com”,这样的就是顶级域名。一级域名一级域名通常也叫顶级域名,比如论坛网址“www.xxxx.com”来说,这就是一级域名.二级域名二级域名就是,既“http://xxx.xxxx.com”。把xxx把这些换成我们想要的这些对于站长朋友来说是非常的熟悉的,因为在建站的时候是需要绑定二级域名和顶级域名的。而三级域名则是二级域名的一种子域名,就是在二级

Public @ 2021-03-04 16:00:31

IIS7如何实现ECShop伪静态?

1、安装iis支持的伪静态组件,rewrite_x64_zh-CN.msi(可百度搜索下载)安装后在站点里面直接点击CUR项目选择导入选址文件文件导入即;2、ECShop静态化文件写入到Web.config文件;3、将下列ECShop静态化代码添加至红色位置,确保添加正确;伪静态4、伪静态的文件,亲测有效;伪静态测试5、登录ECShop后台,开启静态化;ECShop6、测试成功。ECShop实现伪

Public @ 2021-11-16 16:11:01

IIS 6.0 伪静态的配置方法

首先下载一个伪静态组件-rewrite,放到网站根目录image.png打开IIS信息管理器,右击需要添加伪静态功能的站点,选择“属性”—再点击“ISAPI筛选器”,点击右侧的“添加”,“筛选器名称”输入rewrite ,“可行执行文件”处点击右侧的“浏览”,rewrite文件夹image.png选择文件“Rewrite.dll”后点“打开image.png下载 ISAPI_Rewrite3 并安

Public @ 2018-11-12 16:11:02

更多您感兴趣的搜索

0.499751s