Home > Backend Development > PHP Tutorial > discuz x3 fails to call pseudo-static in DIY module and displays dynamic link solution

discuz x3 fails to call pseudo-static in DIY module and displays dynamic link solution

WBOY
Release: 2016-07-29 08:50:56
Original
1113 people have browsed it

discuz x3 fails to call pseudo-static in the DIY module and displays dynamic links, but other links display pseudo-static normally.

After enabling pseudo-static in the background, I found that the forum sections and posts clicked on the link, and the pseudo-static was displayed normally. Then I DIYed the posts displayed on the portal homepage. After clicking in, I found that the link was still a dynamic link and should not be crawled by search engines.

Solution:

Step 1: Front desk administrator login --> DIY -->Edit (pseudo-static problem module) -->Module template (as shown below)

discuz x3在DIY模块中调用伪静态不成功,显示动态链接的解决办法

Step 2: Looking at the code in the module template, you will find:

or

The problem is In the tag, what follows is not href="{url}". Move class="pic" or style="color:#fff" to href="{url}" to display pseudo-static normally. the link to.

The main reason for the problem is irregular writing when DIY template module;

Keep in mind that the correct writing is

The above introduces the solution for discuz x3 to fail to call pseudo-static in the DIY module and display dynamic links, including the content of discuz. I hope it will be helpful to friends who are interested in PHP tutorials.

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template