In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the method of discuz to remove forum.php, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Discuz's way to remove forum.php: first set the domain name in the background; then find "discuz.htm" and change the content to "".
The method of removing forum.php from discuz Forum
First of all, this is the most complete way to remove the forum.php tail from the discuz forum. I have seen similar articles before, but after following the steps, you will find that there are still many places where the forum.php tail has not been removed. This is not good for the website seo.
Today, we have sorted out the most perfect way to remove the tail of forum.php.
Before we do this, let's take a look at the place where the discuz forum contains the forum.php tail:
(1) Forum button in leading voyage
(2) the bread crumb navigation position on the front page of the forum
(3) the bread crumb navigation position of the partition section
(4) the breadcrumb navigation position of the topic list page
(5) the breadcrumb navigation position of the topic content page
(6) send out the navigation location of crumbs on the new theme page
(7) 2 return buttons on the topic list page
(8) the home page of archiver/
(9) by default, the input domain name jumps to with www. Domain name .com / forum.php
Now that we know that the discuz forums contain forum.php, follow these steps to remove them one by one.
(1) set the domain name in the background
After this step is set, the forum button in the leading voyage will remove the forum.php tail.
(2) find discuz.htm in template\ default\ forum, approximately on line 19
Change it to:
In this way, the forum.php in the breadcrumb navigation of the home page and partition section is removed.
(3) in / source/module/forum/
Forum_forumdisplay.php, lines 65, 67, 74, 76: change it to: (remove the forum.php tail from the smear navigation position of the topic list page)
Forum_viewthread.php, line 107: change it to: (remove the forum.php tail from the navigation position of the topic content page)
Forum_post.php, line 111: change it to: (remove the forum.php tail from the topic's bread crumbs navigation position)
Forum_misc.php, lines 394,398: change it to: (this should be the mobile version)
(4) / template/default/forum/
Forumdisplay.htm, line 159: modify to: (remove the forum.php tail from the return button at the top of the topic list page)
Forumdisplay_list.htm, line 332: change "a href=" forum.php "" to: (remove the forum.php tail from the return button in front of the paging navigation at the bottom of the topic list page)
(5) in / source/archiver/forum/
Line 24 of discuz.php, change it to
(6) set 301 redirection
RewriteEngine onRewriteCond% {http_host} ^ (. +)\ .5icool.org [NC] RewriteRule ^ (. *) $http://www.5icool.org/ [Lmai Rome301] RewriteRule ^ (. *)\ / forum.php$ http://www.5icool.org/ [LMIT 301]
Through the above six steps, you can perfectly remove the tail of forum.php from the disciz forum. The purpose of this is to standardize the URL of the website and facilitate the optimization of the website.
These are all the contents of this article entitled "discuz's way to remove forum.php". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.