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

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

网站访问速度慢这个教程帮助你!

今天接到一个朋友的咨询,是做了一个小程序,平时也就一天几百个人访问使用,但卡顿比较明显。于是我们看了一下,确实比较卡。CPU、内存等各方面差看了一下。内存是没有问题的,占用20%左右。但,CPU占用比较多:服务器配置是很给力的,这种配置可以说是神级别了:因为不是自己做的程序,还是不敢贸然下结论。朋友给的线索是:以前刚用的时候没有感觉卡顿,就这些天才有的卡顿。于是有了几个猜测:一、服务器被攻击了有很

Public @ 2018-07-10 15:37:12

iis6手动配置单个站点伪静态(适用vps云主机服务器)

该教程一般纯净版系统适用,装了我司助手的的服务器请按http://www.west.cn/faq/list.asp?unid=650设置1.如图:请先下载组件并解压到D盘http://download.myhostadmin.net/rewrite3.rar2.将文件夹rewrite3复制到需要设置伪静态的站点目录,如d:\wwwroot\test\rewrite3,并检查目录是否包含networ

Public @ 2009-05-28 16:11:02

iis6手动配置单个站点伪静态(适用vps云主机服务器)

首先,在IIS6管理器中创建一个新的网站,指定它的物理路径。 接下来,打开IIS6的属性对话框,选择“主目录”标签页。在此处勾选“启用此文件夹的读取权限”,并勾选“启用文档的默认内容”,在“默认内容”列表框中添加想要的首页文件,如“index.html”。 然后,在IIS6的“主页文件”标签页中,点击“添加”按钮,输入扩展名为“.html”的“文件扩展名”,然后选择可执行文件“C:\WINDO

Public @ 2023-04-18 23:00:27

更多您感兴趣的搜索

0.446159s