.htaccess - draw the lens from the real file.
-
There is a reference: http://mydomain.com/response/prm/show/156
The real way to the file is: http://mydomain.com/response/prm/show/156.php
When you're in contact, the browser doesn't have to change anything, no reins. We need a link to just display the content of the file.
-
For example, souffix may be added
.php
Transferred url-uthe existence of a file (also with additives):rewritecond %{REQUEST_FILENAME} !-f rewritecond %{REQUEST_FILENAME} !-d rewritecond %{REQUEST_FILENAME}.php -f rewriterule ^([^\.]+)$ $1.php [nc,l]