nginx偽靜態規則怎么定義

1、nginx偽動態劃定規矩

rewrite?^(.*)/tags.html?$1/tags.php; rewrite?^(.*)/tags/(.*)-1.html?$1/tags.php?/$2/$3;

rewrite?^([^.]*)/tags.html?$1/tags.php; rewrite?^([^.]*)/tags/(.*)-([0-9]+).html?$1/tags.php?/$2/$3;

2、.htaccess文件偽音訊規定

RewriteBase?/? RewriteRule?^tags.html$?/tags.php$1? RewriteRule?^tags/(.*)-([0-9]+).html$?/tags.php?/$1/$2

3、iis下網站.config文件,偽消息規則:

<rule><match></match><action></action></rule>

4、httpd.ini 文件偽動態規定

RewriteRule?^(.*)/tags.html?$1/tags.php? RewriteRule?^(.*)/tags/(.*)-([0-9]+).html?$1/tags.php?$2/$3

? 版權聲明
THE END
喜歡就支持一下吧
點贊11 分享