How to remove .php, .html, .htm extensions with .htaccess

remove .php .html extensions from website

How to remove .php, .html, .htm extensions with .htaccess

Remove .php .html extension with .htaccess (Updated tutorial)

im recived some comemnt in youtube .html .php extension not work that the main reson we update our tutorial hope like.

Many time we use Different server means local server or big rock, GoDaddy so we update all code .

Removing Extensions ?

yes like your website https://www.gowebs.in/static-website.php and you want to remove .php like https://www.gowebs.in/static-website

Hope you understand.

// when we use Script ( like laravel,coordinator )

//that time you can use this code

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]


if use Localhost then use this code

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

//Html any server 


RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]

//Php any server 


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L] 

wordpress htacess 

https://wordpress.org/support/article/htaccess/

if not work proper mans code is remove automatic 

click this link and download actuelle code