Discuz! 3.5 Remove forum navigation bar forum. php tutorial
discuz! 3.5 The forum wants to remove the forum.php suffix from the navigation bar. The following is an operation tutorial. You can back up and modify it before modifying it.
1. Modify the server pseudo-static rules
1. Apache(.htaccess)
Replace or add the following rules to the.htaccess file in the root directory of the website:
RewriteEngine On
#Map root path/to forum.php (silent rewrite, no redirection)
RewriteRule ^$ forum.php [L]
#Keep the original Discuz pseudo-static rules (keep other pages normal)
RewriteCond %{REQUEST_FILENAME} !- f
RewriteCond %{REQUEST_FILENAME} !- d
RewriteRule ^(.*)$ forum.php?$ 1 [L,QSA]
2. Nginx
Modify pseudo-static rules in the server block configured by the site:
location / {
#Proxy the root path directly to forum.php
if ($request_uri ~ ^/$) {
rewrite ^(.*)$ /forum.php last;
}
#Keep other Discuz rules
if (!- e $request_filename) {
rewrite ^/(.*)$ /forum.php?$ 1 last;
}
}

Restart the server for the configuration to take effect.
2. Modify Discuz background settings
1. Enter the interface → Navigation Settings → Main Navigation
2. Find the "Home" navigation item and change its link to/
3. After saving the settings, update the cache (background → tools → update the cache)

© Website copyright and disclaimer
1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;
2. No one is allowed to copy it without the express written permission of [honmau Media];
3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;
4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;
5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice