note 112279 added to security.hiding

From: Date: Mon, 27 May 2013 10:19:27 +0000
Subject: note 112279 added to security.hiding
Groups: php.notes 
Request: Send a blank email to php-notes+get-194963@lists.php.net to get a copy of this message
The shortest form would be the following. It is minification of Rayan's solution. And works in root as well as any subfolder. You actually do not need the rewrite base. Put these lines in your .htaccess RewriteEngine On RewriteRule ^(.+)\.html$ $1.php [L,QSA] And now we assume that you do not have .html physical files. They are rather the alias of the corresponding .php scripts only. ---- Server IP: 69.147.83.199 Probable Submitter: 117.121.234.131 ---- Manual Page -- http://php.net/manual/en/security.hiding.php Edit -- https://master.php.net/note/edit/112279 Del: integrated -- https://master.php.net/note/delete/112279/integrated Del: useless -- https://master.php.net/note/delete/112279/useless Del: bad code -- https://master.php.net/note/delete/112279/bad+code Del: spam -- https://master.php.net/note/delete/112279/spam Del: non-english -- https://master.php.net/note/delete/112279/non-english Del: in docs -- https://master.php.net/note/delete/112279/in+docs Del: other reasons-- https://master.php.net/note/delete/112279 Reject -- https://master.php.net/note/reject/112279 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194963) next »