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. about.md), create a directory with index.md (e.g. about/index.md).

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.

References:

❤️ 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.