- apache * nix URL-, * nix .
, Apache, .
, .htaccess rewrite:
RewriteRule ^about.php$ About.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
- (, mod_spelling), URL- .
, index.php $_GET['q'] , , include it return :
$basename = strtolower(basename(realpath($_GET['q'])));
if (is_file($path = __DIR__ . '/' . $basename)) {
include($path);
return;
}
.