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. 选择可靠的服务商:选择正规知名的网站空间服务商,比如阿里云、腾讯云等,能保证网站的正常运行和安全性。 2. 确认带宽:根据网站的流量和访问量需求,选择合适的带宽,切勿贪图便宜而选择低带宽的服务商。 3. 确认服务器性能:选择服务器配置高、响应速度快的服务商,能让你的网站更快地响应,提高用户体验。 4. 了解服务商技术支持:选择有专业技术支持的服务商,能在遇到问题时及时解决,保证网站的正

Public @ 2023-06-14 17:50:26

虚拟主机批量替换文本内容

虚拟主机批量替换文本内容可以采用以下步骤: 1. 登录虚拟主机控制面板,找到文件管理器,进入需要替换的文件目录。 2. 在需要替换的文件目录中选择需要替换的文件,右键选中“编辑”菜单。 3. 进入编辑页面后,将需要替换的文本查找出来,选中并复制。 4. 在编辑页面的搜索框中,将复制的文本粘贴进去,然后输入需要替换的新文本。 5. 点击“替换”按钮进行替换,全部替换完成后保存修改即可。

Public @ 2023-04-17 07:50:10

IIS 6.0 伪静态的配置方法

要配置 IIS 6.0 的伪静态功能,可以按照以下步骤进行操作: 1. 打开 IIS 管理器。可以通过在运行中输入 "inetmgr" 并按下 Enter 键来打开。 2. 在 IIS 管理器中,展开 "Web 站点" 节点,并选择要配置的站点。 3. 右键单击所选站点,并选择 "属性"。 4. 在站点属性对话框中,选择 "主目录" 选项卡。 5. 在 "主目录" 选项卡中,找到并点击

Public @ 2023-07-26 04:50:42

更多您感兴趣的搜索

0.504535s