Home  >  Article  >  Backend Development  >  php 伪静态问题

php 伪静态问题

WBOY
WBOYOriginal
2016-06-23 13:54:19765browse

把网页分享到 微信朋友圈之后,发现有一个问题,就是现在网址在 html 后面会自带一串参数。。

这样子在伪静态的网站会导致找不到页面的问题。

请问高手要如何正则处理,谢谢。


回复讨论(解决方案)

找到.html那行 在替换前正则串后面加个.*就好了吧

网页后面的参数,可以写个规则包含进去,如果有参数,伪静态照样实用。

写个规则忽略掉,或者转为参数。

找到.html那行 在替换前正则串后面加个.*就好了吧



是的,我已经解决了,谢谢。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn