Without mod_rewrite, you can directly use php code to implement pseudo-static effects. after reading it, you will find that php is really convenient to Rewrite Pseudo-static data.
Use the following code during program initialization:
The code is as follows:
$ Php2Html_FileUrl = $ _ SERVER ["REQUEST_URI"];
$ Php2Html_UrlString = str_replace ("/", "", strrchr ($ Php2Html_FileUrl ,"/"));
$ Php2Html_UrlQueryStrList = explode ("@", $ Php2Html_UrlString );
Foreach ($ Php2Html_UrlQueryStrList as $ Php2Html_UrlQueryStr)
{
$ Php2Html_TmpArray = explode ("|", $ Php2Html_UrlQueryStr );
$ _ GET [$ Php2Html_TmpArray [0] = $ Php2Html_TmpArray [1];
}
Echo false static: $ _ GET variable
;
Print_r ($ _ GET );
?>
Then the $ _ GET variable is called in php as usual.
Connection usage:
* ***. Php/param1 | 1234 @ param2 | 4321
And ***. php? Param1 = 1234 & param2 = 4321.