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

域名转入后年限未增加常见原因

什么是域名转入后年限未增加?根据大多数注册局后缀规则,域名在新注册商成功转入后,年限会增加一年,转入费用实际相当于域名续费一年。如域名:west.xyz,原注册商到期时间:2020年2月4日,在2020年2月15日支付68元转入到新注册商后到期时间仍为2020年2月4日。该情况视为域名转入后年限未增加(域名到期时间未增加一年)。什么原因导致域名转入后年限未增加一年?1.   

Public @ 2019-07-22 16:00:10

IIS 6.0 伪静态的配置方法

IIS 6.0 是微软的一款 Web 服务器软件,可以实现虚拟主机、网站发布、应用程序支持等功能。在使用 IIS 6.0 作为 Web 服务器时,可以使用伪静态的技术来实现 URL 重写和美化,增加网站的可读性和可维护性。以下是在 IIS 6.0 中配置伪静态的方法: 1. 在 IIS 控制台中创建一个 Web 应用程序,并在其根目录下创建一个名为“urlrewrite”(可自定义)的文件夹。

Public @ 2023-04-10 15:01:01

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

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

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

更多您感兴趣的搜索

0.439518s