Home > CMS Tutorial > Discuz > How to remove forum.php from discuz

How to remove forum.php from discuz

藏色散人
Release: 2021-02-01 11:58:20
Original
8113 people have browsed it

Discuz method to remove forum.php: First set the domain name in the background; then find "discuz.htm" and modify the content to "" is enough.

How to remove forum.php from discuz

Recommended: "discuz tutorial"

Remove the forum in the discuz forum .php method

First of all, let me declare: This is the most complete method to remove the tail of forum.php in the discuz forum. I have seen similar articles before, but after following the steps, everyone will I found that there are still many places where the forum.php tail has not been removed. This is not conducive to website SEO.

Today, we have compiled the most perfect method for removing the tail of forum.php.

Before operating, let’s first take a look at the discuz forum where the tail of forum.php is included:

(1) Forum button in the main navigation

(2) Forum The breadcrumb navigation position of the homepage

(3) The breadcrumb navigation position of the partition section

(4) The breadcrumb navigation position of the topic list page

(5) Theme content The breadcrumb navigation position of the page

(6) The breadcrumb navigation position of the new topic page

(7) The two return buttons of the topic list page

(8) Archiver /'s homepage

(9) Enter the domain name and jump to the page with www.domain name.com/forum.php by default

Now that you know, discuz forums are all those places that contain forum.php. Next, follow the following steps to remove

one by one (1) Set the domain name in the background

After this step, the forum button in the main navigation will remove the forum.php tail

(2) Find discuz.htm in template\default\forum, approximately at line 19,

Change to:

In this way, the breadcrumb navigation of the homepage and partition section The forum.php has been removed.

(3) In /source/module/forum/

forum_forumdisplay.php, lines 65, 67, 74, and 76: put (Remove the tail of forum.php in the rubbish navigation position of the topic list page)

forum_viewthread.php, line 107: Change Modify to: (remove the forum.php tail in the breadcrumb navigation position of the theme content page)

forum_post.php, line 111: Change to: (remove the forum.php tail of the theme's breadcrumb navigation location)

forum_misc .php, lines 394 and 398: Change to: (This should be the mobile version)

(4)

forumdisplay.htm in /template/default/forum/, line 159: Change to: (Remove the forum.php tail in the return button above the topic list page)

forumdisplay_list.htm, line 332: Modify "a href="forum.php"" to: (Remove the forum.php tail in the return button in front of the paging navigation below the topic list page)

(5) In /source/archiver/forum/

In line 24 of discuz.php, change to

(6) Set up 301 redirection

RewriteEngine on
RewriteCond %{http_host} ^(.+)\.5icool.org [NC]
RewriteRule ^(.*)$ http://www.5icool.org/ [L,R=301]
RewriteRule ^(.*)\/forum.php$ http://www.5icool.org/ [L,R=301]
Copy after login

Through the above six steps, you can perfectly remove the tail of forum.php in the disciz forum. The purpose of this is to standardize the website URL and facilitate website optimization.

The above is the detailed content of How to remove forum.php from discuz. For more information, please follow other related articles on the PHP Chinese website!

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