html中tags标签关键词url以ID伪静态的示例分析

发布时间:2022-03-10 14:03:58 作者:小新
来源:亿速云 阅读:130

这篇文章主要介绍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伪静态的示例分析”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

推荐阅读:
  1. HTML中格式及标签的示例分析
  2. WordPress分页伪静态加html后缀的示例分析

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

html tags url

上一篇:html中tags标签关键词url的示例分析

下一篇:帝国cms中常用的标签有哪些

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》