Removal of Discuz X 2.5 forum forum.php Tail

Source: Internet
Author: User


In fact, about this problem Baidu a lot of, but a lot of people Baidu will not, it can only let us share the people sharing the

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 the main navigation

1.jpg (5.81 KB, download count: +)

Download attachments

2013-2-21 13:01 Upload

(2) Forum home breadcrumbs Navigation position (3) section of breadcrumbs navigation location (4) Topic list page breadcrumbs navigation position (5) Topic content page breadcrumbs Navigation location

2.jpg (24.92 KB, download count: si)

Download attachments

2013-2-21 13:01 Upload

(6) New theme page breadcrumbs navigation position (7) 2 return buttons on the topic list page

3.jpg (26.37 KB, download count:)

Download attachments

2013-2-21 13:01 Upload

(8) Archiver/'s homepage

4.jpg (3.63 KB, download count: +)

Download attachments

2013-2-21 13:01 Upload



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

Now that you know, the Discuz forum is where there are forum.php, then follow the steps below to remove
(1) Set the domain name in the background

5.jpg (30.79 KB, download times:)

Download attachments

2013-2-21 13:01 Upload



Here is another method, that is, in the interface navigation inside my home page navigation into your forum according to the address, this method can also.

(2) inTemplate\default\forumfound indiscuz.htm,forumdisplay.htm,viewthread.htm, about the first +The location of the line is modified according to the following code

    1. ./"class=" Nvhm "title=" {lang homepage} ">$_g[setting][bbname"»./"{if $_g[' setting '] [' Forumjump ']} id= "Fjump" onmouseover= "delayshow (This, ' Showforummenu ($_g[fid]) ');" class= "ShowMenu" {/if}>{$_g[ Setting][navs][2][navname]} $navigation
Copy Code(3) in/source/archiver/forum/in
    1. discuz.php the 24th line, change the revision to
Copy Code(4) Settings301 redirect
    1. Rewriteengine on
    2. Rewritecond%{http_host} ^ (. +) \. Domain name COM [NC]
    3. Rewriterule ^ (. *) $ http://www. Domain name. com/[l,r=301]
    4. Rewriterule ^ (. *) \/forum.php$ http://www. Domain name. com/[l,r=301]
Copy CodeAbout 301 The problem of orientation is not much to say, like can be more to study

Well, this will be the perfect way to get rid of the forum.php tail in the Disciz forum. The purpose of this is to standardize website URLs, which facilitates site optimization.
Discuz
  • 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.