hi i am trying to remove .html from url.
example : from: example.com/home.html to example.com/home
i ran into some videos and posts regarding .htaccess file.
i used this code for htaccess and checked it on htaccesschecker , it says syntax is ok.
RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
i am trying to do it first on vscode. when i run live server i just get same .html ending for every html file...