Discuz 7.0 pseudo static rewrite. htaccess rule _linux

Source: Internet
Author: User
Tags file upload

The specific steps are as follows:

1, will you have established the. htaccess file to the local, or access to the host Control Panel, find you want to modify the. htaccess file, click "Edit" can be edited;

2. Add the following rules to the. htaccess file, modify them according to the instructions in the rules, and submit them for preservation;

Copy Code code as follows:

# Open the Rewriteengine mode
Rewriteengine on

# Modify the/bbs in the following statement for your forum directory address, if the program is placed in the root directory, please change/bbs to/

# Rewrite System rules do not modify
Rewriterule ^archiver/((Fid|tid)-[\w\-]+\.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

3, will you modify the good. htaccess file upload coverage can be, if the online directly modified, then skip this step;

4, into the Discuz forum background, open the appropriate options, you can successfully achieve the Discuz7.0 function of the pseudo static.

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.