I simply wrote a php function to process the normal url mode and change the pathinfo mode /**
* @ Category url_type this method is used to process the url mode pathinfo mode.
*/
Function url_type (){
// Url mode controller -- method acquisition
$ Url = $ _ SERVER ['php _ SELF ']."
";
// Echo $ url ,"
";
$ Num = strpos ("$ url", '. php') + 5;
$ Data = mb_substr ($ url, $ num );
$ Array_url = explode ("/", $ data );
// Echo"
";
// Var_dump ($ array_url );
// Echo"
";
$ _ GET ['c'] = $ array_url [0];
$ _ GET ['M'] = $ array_url [1];
// Obtain url mode parameters
Unset ($ array_url [0]);
Unset ($ array_url [1]);
// Var_dump ($ array_url); die ();
$ Nums = count ($ array_url );
If ($ nums! = 0) {// it means there are parameters
If ($ nums % 2 = 0 ){
$ Nums = $ nums/2;
For ($ I = 1; $ I <= $ nums; $ I ++ ){
$ _ GET [$ array_url [2 * $ I] = strip_tags ($ array_url [2 * $ I + 1]);
}
} Else
Die ("dear, your parameter settings are incorrect. Please check your link address! ");
}
}