Discussion on PHP pseudo-static 1. isn't the following address a pseudo-static address? & Nbsp; news. php? Id1_2&.html 2. pseudo-static processing if news. php simultaneously processes news. php? Cid = 1 & amp; id = 2 and news. php? Cid = 1 and news. php (no arguments about PHP pseudo-static
1. isn't the following address pseudo-static?
News. php? Id=2&.html
2. pseudo-static processing
If news. php simultaneously processes news. php? Cid = 1 & id = 2 and news. php? Cid = 1 and news. php (no parameters)
News. php/1_2.html news. php/1.html news. php
The question is: news. php? Cid = 1 and news. php (without any parameters). how can I reasonably write the pseudo static address of the page?
Note: a pseudo-static address statement is recommended.
------ Solution --------------------
1, No. php? None.
2. pseudo-static should at least remove the php keyword, otherwise the search engine will recognize it. Without understanding the example, there will be no parameters without parameters. just rewrite the rules. The simplest pseudo-static is the default pseudo-static implementation of most frameworks. all the GET parameters are transmitted using pathinfo, and php? You can just remove this type of things. of course, the framework is the Index. php single portal, followed by ACITION/METHOD/KEY/VALUE.
------ Solution --------------------
Write rules separately
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