how to hide php extension in url

Solutions on MaxInterview for how to hide php extension in url by the best coders in the world

showing results for - "how to hide php extension in url"
Rodrigo
16 Apr 2020
1Options +MultiViews
2RewriteEngine On
3RewriteCond %{REQUEST_FILENAME} !-d
4RewriteCond %{REQUEST_FILENAME} !-f
5RewriteRule ^([^\.]+)$ $1.php [NC,L]
6
Allison
26 Apr 2016
1# Run Php without filename extension
2RewriteEngine on
3RewriteCond %{REQUEST_FILENAME} !-d
4RewriteCond %{REQUEST_FILENAME}.php -f
5RewriteRule ^(.*)$ $1.php
6
7# Return 404 if original request is .php
8RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
9RewriteRule .* - [L,R=404]
Teddy
16 Apr 2020
1# Run Php without filename extension
2RewriteEngine on
3RewriteCond %{REQUEST_FILENAME} !-d
4RewriteCond %{REQUEST_FILENAME}.php -f
5RewriteRule ^(.*)$ $1.php
6
7# Return 404 if original request is .php
8RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
9RewriteRule .* - [L,R=404]
10
11
queries leading to this page
hide index php from url htaccesshide php and html from url htaccesshide php extension in urlhide php from url htaccesshide id in url phphow to hide the php extension in urlhide php extension in url htaccess hide file extension phphow to hide url extension in phphow to hide url in phphide php extension in url using htaccesshow to hide 3f in url phphow to hide php extension in urlhow to hide php extension in urlhide php extensionhow to hide php extension in url using htaccesshow to hide php extension from urlphp hide extension in urlhide wp login phphow to create htaccess file to hide php extension on ubuntu serverhide html from url htaccesshow to creat htaccess on ubuntu server to hide php extensionhide php extention from urlhide png extension in url phphide url using htaccesshow to create htaccess on ubuntu server to hide php extensionhtaccess hide php extension from urlhide php extension from urlhide parameters in url php htaccesshow to hide the url in browser phphow to hide php in urlhide page extension in url phphide 23 in url in html htaccesshow to hide php file extension in urlhide html url extensionhide extension in url php htaccess how to hide urlhide php extension in url without htaccesshow to hide id in url with htaccess phphow to hide html and php url extentionchange url and hide php file with htaccesshide php from url htaccesshtaccess hide phphow google hide page extension in url in phphow to hide extention php on page web urlhiding php extension in urlhow to hide php extension in url