I am used to using PATH_INFO to achieve search engine friendliness, such as:
http://www.xxx.com/index.php/module/xxx/action/xxx/id/xxx
But it’s very unpleasant to see the extension in index.php. The solution is as follows:
How to hide applications: For example, .php, extension:
Configure it like this in APACHE:
ForceType application/x-httpd-php
How to behave more like a static page: app_name/my/app.html
When parsing the PATH_INFO parameter, just truncate the last 5 characters ".html" of the last parameter.
Note: PATH_INFO is not allowed by default in APACHE2, you need to set AcceptPathInfo on
http://www.xxx.com/index/module/xxx/action/xxx/id/xxx