Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How to remove all .html from the URL | Nignx

$
0
0
I'm new to Nginx, I need to remove all the *.html extensions appear in my URL, e.g. http://mywebsite.com/events.html/beauty-must-haves.html

I've tried lots of solutions to fix this, but not able to fix, can anyone kindly help me to fix this. These are no hard coded pages, it generates at runtime the following link doesn't help fix it.

how to serve html files in nginx without showing the extension in this alias setup

I need it to be SEO Friendly e.g. http://mywebsite.com/events/beauty-must-haves

Thanx in Advance.

Viewing all articles
Browse latest Browse all 4759

Trending Articles