1

I need clean urls for my website.

Html should be removed from the url name and if a website visitor should be able to visit my website without entering .html.

Can someone help me how to do this with the rewrite feature?

I use the Admin Software Plesk with the nginx Server!

Gilles-Antoine Nys
  • 1,481
  • 16
  • 21

1 Answers1

1

You can read from the official blog or you can try something like this. They must be inside location / {}

 http://example.com/page
http://example.com/page.html

rewrite ^/page?$ /page.html last;
MrGKanev
  • 36
  • 1
  • 5
  • Thaaaaaaaanks Габриел Кънев! It works PERFECT. You are so great. I read so many tips on the internet, but none worked. Your tip is short and perfect! Many Thanks! –  Jul 16 '18 at 09:16