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

域名转入流程使用教程

,具体的操作方法步骤如下: 1. 登录域名控制面板,进入Whois信息管理页面,将您的域名记录修改为: 主机记录: NS1.DNS.COM NS2.DNS.COM 2. 将域名提交转入申请,选择转入至哪个域名注册商进行域名转入; 3. 登录新的域名注册商后台,添加该域名,并提交转入申请,提交完毕后,便可以将转入所需要的文档上传; 4. 等待新的注册商审核转入申请,通常转入审核需要1-2

Public @ 2023-02-25 19:00:25

企业应用网站性能优化实例分析

以下是一些企业应用网站性能优化实例分析: 1. 压缩和优化图片 图片是大多数企业网站页面中消耗带宽和导致页面加载速度变慢的主要原因之一。为了优化网站的性能,企业可以压缩图片以减少它们所占用的空间,从而减少页面加载时间。此外,企业还可以使用适当的格式和分辨率来优化图片。例如,使用JPEG格式进行照片和图像,而使用PNG格式进行透明的图标和按钮。 2. 合并和缩小CSS和JavaScript文件

Public @ 2023-06-21 13:50:34

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

1. 打开 IIS 管理器,在左侧面板中找到“网站”,右键单击,选择“新建网站”。 2. 在“网站向导”中,输入网站名称,选择要放置网站的目录,点击“下一步”。 3. 在“IP 地址和端口”中,选择“IP 地址”为“默认”,“端口”为“80”(如果您的网站使用了 SSL,可以将端口设为“443”),点击“下一步”。 4. 在“主机头(域名)”中,输入您的网站域名,点击“下一步”。 5. 在

Public @ 2023-06-05 20:50:29

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

更多您感兴趣的搜索

0.429569s