php server redirect to php file without php ending

Solutions on MaxInterview for php server redirect to php file without php ending by the best coders in the world

showing results for - "php server redirect to php file without php ending"
Lucia
27 Mar 2020
1Your .htaccess file would need to look something like this:
2
3IndexIgnore * # prevent directory listing
4
5Order deny,allow
6Allow from *
7
8# ------------------------------------------
9# Rewrite so that php extentions are not shown
10RewriteEngine on
11
12RewriteCond %{REQUEST_FILENAME} !-d
13RewriteCond %{REQUEST_FILENAME}\.php -f
14RewriteRule ^(.*)$ $1.php