Home  >  Article  >  Backend Development  >  How to open forum.php

How to open forum.php

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-10-21 11:25:5629205browse

How to open forum.php

Solution: Display the file extension and change php to PDF. You must have downloaded something on the forum and used the download tool.

How to open the discuz forum homepage without displaying forum.php

Solution 1:

First go to the interface->Navigation Settings-> ;Add a main navigation forum to the header navigation

The forum name before the name change. The new navigation type is customized, which is different from the previous forum type. The previous forum type is built-in. Then select the previous forum on the homepage, uncheck the available checkbox, and check the available checkbox for the new

forum. The link of the new forum is /bbs, and save it. Then enter your top-level domain name in Global->Domain Name Settings->Application Domain Name->Default, and enter

at the default: http://127.0.0.1:81/. This is what I set. value. Then try again

Now just enter http://127.0.0.1:81//bbs and a forum.php tail will not be appended. After using this method, use Firefox to open http:

//127.0.0.1:81/bbs/ prompts circular redirection and cannot open the page. I opened it with Sogou browser and the page kept refreshing (it cannot be ruled out that it is because of my non-standard operation, but it did not solve my

question). After using this method, opening http://127.0.0.1:81/bbs/ will not jump, but the reality is the content of http://127.0.0.1:81/bbs

/portal.php .

Related recommendations: "php Getting Started Tutorial"

Solution 2:

Under http://127.0.0.1:81/bbs/ Create a .htaccess file and write directoryindex forum.php

in it (start by trying to create a new txt and then change the file name. Under XP, it prompts that you must enter the file name. Simply download an .htaccess directly from the online virtual host and use Notes This is opened for modification). Opening

http://127.0.0.1:81/bbs/ again will open the content of http://127.0.0.1:81/bbs/forum.php, but the URL will not jump to

http://127.0.0.1:81/bbs/forum.php, modified successfully.

Notes:

1. Different friends have different specific situations, and different solutions are used in different situations.

2. After the modification is successful, you should also pay attention to modifying the anchor text on the forum homepage, section homepage, winner navigation, and location navigation on the content page to achieve the purpose of URL standardization, determining the forum homepage address, and centralizing weight. My

method is to further add forum_viewthread.php,

forum_forumdisplay.php, forum_misc.php, forum_post.php (these 4 files) in the /source/module/forum/ directory Then search the source code for href="forum.php" after "

navigation" and change it to, and then rebuild the cache.

Using the above two methods, you can basically remove forum.php on the discuz forum homepage in the bbs directory. Friends who want to remove it can try it. I used the second method successfully.

The above is the detailed content of How to open forum.php. 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