Learn about Apache's mod rewrite, access notation _linux

Source: Internet
Author: User
The Apache mod rewrite
Rewriteengine on Rewritebase/b2b/website/rewriterule ^article-([0-9]+) \.html$ view_details.php?browse=profile& Id=$1
The above test passes. If not, the key is the server side, how to change the future to play
About the picture can add a/503 (ID)/title.htm This must not repeat, with 503 or other numbers or ABC also line, regardless of OABC also think not very ideal, learn II, he is the definition of a number of all the functions on the line

This is a valuable reference.
<ifmodule mod_rewrite.c>
Rewriteengine on
Rewriterule ^ (. *)/archiver/((Fid|tid)-[\w\-]+\.html) $ $1/archiver/index.php?$2
Rewriterule ^ (. *)/forum-([0-9]+)-([0-9]+) \.html$ $1/forumdisplay.php?fid=$2&page=$3
Rewriterule ^ (. *)/thread-([0-9]+)-([0-9]+) – ([0-9]+) \.html$ $1/viewthread.php?tid=$2&extra=page\%3d$4& Page=$3
Rewriterule ^ (. *)/space-(USERNAME|UID)-(. +) \.html$ $1/space.php?$2=$3
Rewriterule ^ (. *)/tag-(. +) \.html$ $1/tag.php?name=$2
</IfModule>
Discuz's
The most powerful WordPress
# BEGIN WordPress
<ifmodule mod_rewrite.c>
Rewriteengine on
Rewritebase/
Rewritecond%{request_filename}!-f
Rewritecond%{request_filename}!-d
Rewriterule. /index.php [L]
</IfModule>
# End WordPress
The key to see how to use the% and [...]

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.