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
- ./"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
- discuz.php the 24th line, change the revision to
Copy Code(4) Settings301 redirect
- 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]
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.
|