In vps & nbsp; & nbsp; win2003 & nbsp; iss for example & nbsp; Personal Center of website member A & nbsp; the address is & nbsp ;****. com/member. php /? Userid = 89 writing pseudo-static rules in php
Win2003 iss in vps
For example, the Personal Center address of website member A is ***. com/member. php /? Userid = 898
''' I want to convert it pseudo-static **** **/member. /898.html
''I found a piece of code on the Internet and tried to write pseudo-static rules as follows:
···············
RewriteRule/member/(\ d +) \. html/member \. php \? Onsid = $1 [N, I]
''''' ''' And loading pseudo-static data successfully. now the problem is solved ···
The address displayed in the browser accessing the personal center of A is *****. com/member. php /? Userid = 898
It is not a pseudo-static address, but you can directly enter ***. com/member/898.html to access this member ··
·············
How can I solve this problem? · How can I access the website and access the address accessed by this member directly from a pseudo-static address ···
·······
The pseudo-static rule cannot work. I think it is not good to remove the userid ····
······
Thank you for your pseudo-static data? Share with php:
------ Solution --------------------
You just need to rewrite the form such as *****/member./898.html to the form such as *****. com/member. php /? Userid = 898
It doesn't make sense to modify your program code. Because the connections generated by your program are still like *****. com/member. php /? Dynamic URLs such as userid = 898
You need to modify your program so that the connections generated by the program are like ******/member./898.html.
And if the program still processes the incorporated parameters according to the traditional dynamic url, it will easily cause confusion.
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