Article Title: Implement pseudo-static methods on the Discuz forum in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In linux, We can modify or add a. htaccess file to implement pseudo-static discuz.
1. The part referenced in the article is a pseudo-static method! Create a notepad on the desktop, copy the referenced content, save-Save As (save type for all files, save the folder named. htaccess)
2. if the forum is located in the root directory of the website, upload the saved. htaccess file to the root directory of the website! If the Forum is a second-level domain name and the access method is bbs.xxx.com, we need to put the file in the bbs folder.
3. it is worth noting that the red font section in the reference, RewriteBase/refers to the root directory of the website. If your forum access method is www.xxx.com/bbs, then this sentence should be changed to RewriteBase/bbs, upload the file to the bbs folder!
# Enable RewriteEngine Mode
RewriteEngine On
# Modify/discuz in the following statement to your forum directory address. If your program is in the root directory, change/discuz/
RewriteBase/
# Do not modify Rewrite system rules
RewriteRule ^ archiver/(fid | tid)-[0-9] + \. html) $ archiver/index. php? $1
RewriteRule ^ forum-([0-9] +)-([0-9] +) \. html $ forumdisplay. php? Fid = $1 & page = $2
RewriteRule ^ thread-([0-9] +)-([0-9] +)-([0-9] +) \. html $ viewthread. php? Tid = $1 & extra = page \ % 3D $3 & page = $2
RewriteRule ^ space-(username | uid)-(. +) \. html $ space. php? $1 = $2
RewriteRule ^ tag-(. +) \. html $ tag. php? Name = $1