Here are the main funding URL display style 1. Open the Config folder below mian.php 2. Modify content like address Http://www.test.com/index.php?r=site/page/sid /1 modified for HTTP://WWW.TEST.COM/SITE/PAGE/SID/1 [PHP] ' Urlmanager ' =>array ( ' Showscriptname ' =>false, //This step is to hide the index.php link in the code. ' urlformat ' => ' path ', ' Rules ' =>array ( ' <controller:\w+>/<id:\ D+> ' => ' <controller>/view ', ' <controller:\w+>/<action:\w+>/<id:\d+> ' => ' <controller>/ <action> ', ' <controller:\w+>/<action:\w+& gt; ' => ' <controller>/<action> ', &NBSp &NB sp; ), , Change to add rule add if you want to not display parameter names After the rule address for HTTP://WWW.TEST.COM/SITE/PAGE/1 [PHP] ' rules ' =>array ( &N Bsp ' <controller:\w+>/<action:\w+>/<sId:\d+> ' => ' <controller>/ <action>, , can also be modified into http://www.test.com/site/p AGE/SID1 [PHP] ' rules ' =>array ( &NBS P ' <controller:\w+>/<action:\w+>/Sid<sId:\d+> ' => ' <controller>/<action> ', , does not show controller and action http://www.test.com/Sid1 [php] ' rule S ' =>array ( ' sid<sid:\d+> ' => ' site/page ', & nbsp ), Note the order of the defined rules
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