Implement pseudo-static methods in the Discuz forum in Linux

Source: Internet
Author: User
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

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.