虚拟主机配置伪静态方法( 三 )


phpcms伪静态规则
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)content-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/index.php?m=content&c=index&a=show&catid=$2&id=$3&page=$4
RewriteRule ^(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/index.php?m=content&c=index&a=show&catid=$2&id=$3&page=$4
RewriteRule ^(.*)list-([0-9]+)-([0-9]+).html$ $1/index.php?m=content&c=index&a=lists&catid=$2&page=$3

虚拟主机配置伪静态方法

文章插图
phpcms伪静态规则图片
phpwind伪静态规则
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule !.(js|ico|gif|jpe?g|bmp|png|css)$ /index.php [NC,L]
虚拟主机配置伪静态方法

文章插图
phpwind伪静态规则图片
thinkphp伪静态规则
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
</IfModule>
虚拟主机配置伪静态方法

文章插图
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>
虚拟主机配置伪静态方法

文章插图
wordpress伪静态规则图片
【虚拟主机配置伪静态方法】zblog伪静态规则
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
虚拟主机配置伪静态方法

文章插图
zblog伪静态规则图片
好了,这是所有伪静态规则,希望对你们有帮助哦 。觉得有帮助和实用的小伙伴,记得转发和评论哦!
可以在评论区评论出你想学的教程 。我会出的!丰宇科技-丰宇知识铺!




推荐阅读