这篇文章主要介绍html中tags标签关键词url以ID伪静态的示例分析,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完! 1、Nginx伪动态划定rewrite ^(.*)
这篇文章主要介绍html中tags标签关键词url以ID伪静态的示例分析,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
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 name="Imported Rule tags 1">
<match url="^(.*/)*tags.html$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/tags.php" />
</rule>
<rule name="Imported Rule tags 2"> <match url="^(.*/)*tags/([^-]+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="{R:1}/tags.php\?/{R:2}/{R:3}" appendQueryString="false" /> </rule>
4、Httpd.ini 文件伪信息规则
RewriteRule ^(.*)/tags\.html $1/tags\.php
RewriteRule ^(.*)/tags/(.*)-([0-9]+).html $1/tags\.php\?$2/$3
以上是“html中tags标签关键词url以ID伪静态的示例分析”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注编程网JavaScript频道!
--结束END--
本文标题: html中tags标签关键词url以ID伪静态的示例分析
本文链接: https://www.lsjlt.com/news/92921.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-01-12
2023-05-20
2023-05-20
2023-05-20
2023-05-20
2023-05-20
2023-05-20
2023-05-20
2023-05-20
2023-05-20
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0