" will do."/> " will do.">

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

How to remove forum.php from discuz

藏色散人
藏色散人Original
2020-08-21 10:33:367989browse

Discuz method to remove forum.php: First set the domain name in the background; then find "discuz.htm" and modify the content to "06763839c7372b159a926c0accb87008" 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 b0ffa7da1e2e401f3abed634d2b9648d to: cfa0733e92d9708142d36648d0da1a21

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 5e45146c3c22df075e1c78912029c905 (Remove the tail of forum.php in the rubbish navigation position of the topic list page)

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

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

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

(4)

forumdisplay.htm in /template/default/forum/, line 159: Change b0ffa7da1e2e401f3abed634d2b9648d to: e2ac87e9bce07fe3f9bebf9d745ca0fb (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: 6b4ab92f1d6d8dc1840fdcd22e705db9 (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 cf9347644418eece97de28f19847efd5 to 140cd10cd8ce7e1ba09f2d0636f66715

(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]

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!

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