Original article address:
Piquantboy implements URL pseudo-static in Apache
Many friends who configure Apache for the first time will encounter various problems, not because of the complexity of Apache configuration, but because of the first attempt, they will not be able to start or do not know where to start.
Piquantboy is from designCodeI have encountered various problems during the implementation step by step and will feel more enriched after the tangle, because I am verifying what I can do with piquantboy with my native power, before today, I was thinking about Apache's question about URL rewriting, which was explained in detail in the original article, including how I thought about the problem and what measures have been taken to solve the problem, and where your thinking is limited. In addition, you can enter the test address on the original website for verification. This will be helpful for new friends.
1. I want to re-display http://www.piquantboy.com/index. php? The format of article & Action = getlist & typeid = 6 is too sharp. The best format is http: // www.piquantboy.com/artcle_getlist_1_type.html.
2. It is impossible for me to directly enter http://www.piquantboy.com/artcle_getlist_1_type.htmlthis page! It seems that
Configure Apache, It seems very esoteric (this idea is the most time-consuming)
In fact, it will be very simple after the solution, because the tendon in my head was not transferred !!
Rewriterule ^ (. *)/Article _ ([A-Z] +) _ ([0-9] +) _ art \. HTML $1/Index \. PHP \? Article & Action = $2 & artid = $3 [l]