per gestire queste cose si utilizza il modulo url rewrite di Apache, inserendo la configurazione nel file .htaccess
http://alexcican.com/post/how-to-rem...with-htaccess/
Quote:
|
To remove the .php extension from a PHP file for example yoursite.com/wallpaper.php to yoursite.com/wallpaper you have to add the following code inside the .htaccess file:
|
Codice:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
cosa intendi per vietare l'accesso?