I have seen this and personally think it is a terrible design. In particular, because many people are not inclined to sanitize the inclusion parameter, so that someone can include any file that they need, just by going along the relative path.
mod_rewrite URL-, :
/index.php?path=user&include=account
- :
/user/account
:
RewriteEngine On
RewriteBase /
RewriteRule ^(\w+)/(\w+)$ /index.php?path=$1&include=$2 [L]
- :
RewriteRule %{THE_REQUEST} \.php$ [R=404,L]
, , php. RewriteRule ( ), , PHP, , ( POST ).
, , , . , , , (, ). , . .