The most comprehensive discuz! X2 removal of Forum. php tail

Source: Internet
Author: User

First declare: this is an article to remove Forum from the discuz forum. PHP tail is the most comprehensive method. I have seen similar articles before. However, after performing the steps, you will find that there are still many places where forum is not removed. PHP tail. This is not conducive to website Seo. Today, we have sorted out the most perfect way to remove the Forum. php tail.

Before proceeding, let's take a look at the places where the discuz Forum contains the Forum. php tail:

(1) leading the forum button in flight

(2) Navigation of the Forum Homepage

(3) navigation position of the partition Section

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

(5) Click the tab on the topic content page.

(6) New Topic tab breadcrumb navigation location

(7) Two return buttons on the topic list page

(8) homepage of archiver/

(9) enter the domain name to jump to the page with www. Domain Name. com/Forum. php by default.

Now that we know that the discuz Forum contains Forum. php, follow these steps to remove them one by one.

(1) set domain names in the background

After setting this step, the Forum. php tail is removed from the forum button in the pilot flight.

(2) Find discuz.htm in template \ Default \ forum, which is about 19th rows,

Set <a href = "forum. PHP "> changed to <a href =" http: // $ _ g ['setting'] ['domain '] ['app'] ['Forum']/">

In this way, Forum. php In the breadcrumb navigation bar of the home page and partition section is removed.

(3) In/source/module/FORUM/

Forum_forumdisplay.php, 65th, 67, 74, and 76 rows: Set <a href = "forum. PHP "> changed to: <a href = ". /"> (remove the topic list page. PHP tail)

Forum_viewthread.php, row 107th: Set <a href = "forum. PHP "> changed to: <a href = ". /"> (remove the forum of the crumb navigation location on the topic content page. PHP tail)

Forum_post.php, row 111st: Set <a href = "forum. PHP "> changed to: <a href = ". /"> (remove the Forum in the left-side navigation pane. PHP tail)

Forum_misc.php, lines 394th and 398: Modify <a href = "Forum. php"> to <a href = "./"> (this should be a mobile phone version)

(4)/template/default/FORUM/

Forumdisplay.htm, row 159th: Set <a href = "forum. PHP "> changed to <a href =" http: // $ _ g ['setting'] ['domain '] ['app'] ['forum']/"> (remove the Forum in the return button at the top of the topic list page.. PHP tail)

Forumdisplay_list.htm, row 332nd: Set "a href =" forum. PHP ", changed to: <a href = http: // $ _ g ['setting'] ['domain '] ['app'] ['Forum']/> (remove the return button before navigation by page at the bottom of the topic list page. forum. PHP tail)

(5) In/source/archiver/FORUM/

Discuz. in line 2 of PHP, set <a href = ".. /forum. PHP "target =" _ blank "> changed to <a href = ".. /"target =" _ blank ">

(6) set 301 redirection

Rewriteengine on

Rewritecond % {http_host} ^ (. +) \. Domain Name COM [Nc]

Rewriterule ^ (. *) $ http: // www. Domain Name. com/[L, r = 301]

Rewriterule ^ (. *) \/Forum. php $ http: // www. Domain Name. com/[L, r = 301]

With the above six operations, we can perfectly remove the Forum. php tail in the disciz forum. The purpose of this operation is to standardize the website URL and optimize the website.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.