VuePress Remove .html Extension From Pages Route

Sep 28, 2018
Show `/about` instead of `/about.html`

As of VuePress v0.14.4 (16 Sep 2018), there is no official solution but a hack is available.

Instead of created a page (e.g., create a directory with (e.g. about/

If you are using the development server, you must access the page with a trailing slash. http://localhost:8080/about/ works but http://localhost:8080/about will not.

For production server, it will depends on your configuration and handling of trailing slash.

I am using Google App Engine to redirect pages like /about to /about/. Refer to Google App Engine Static Website Redirect Trailing Slash.


❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.