How to remove the end links of the site to remove the html extension?

Hello,you need to remove the. html extension in the address bar of the website,tried to insert different codes .htaccess,nothing helped.For help unable to pay.
March 23rd 20 at 19:17
3 answers
March 23rd 20 at 19:19
Add lines
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.HTML [NC,L]
And if I have this file(htaccess) did not exist,create it and wrote that you took off? - daryl commented on March 23rd 20 at 19:22
Yes, sticking to to .htaccess - Shanel_Wyman commented on March 23rd 20 at 19:25
@Shanel_Wyman, did not help( - daryl commented on March 23rd 20 at 19:28
You just Apache? - Shanel_Wyman commented on March 23rd 20 at 19:31
March 23rd 20 at 19:21
If the site is static html only ..then each page in the folder and call the folder already inside index.html and the name of the folder this is what should appear in the url if I'm not mistaken so

5d04729970580521368958.gif
March 23rd 20 at 19:23

Find more questions by tags HTML