Skip to content

Remove html extension from pages on test server. #2021

Closed
@cirosantilli

Description

On Github Pages it already works: I can create a page with path /pagetitle.html, and use URL /pagetitle (without .html).

The problem is that to do that I have to setup all my links without the .html, which breaks the links on the test server.

For posts, this is already possible with permalink: /:title.

Is there any way to do it for pages also?

Workarounds:

  • use posts instead of pages. Not satisfactory because:

  • put the file in a folder with the desired name and rename it as index.html.

    Too much boilerplate.

  • use Apache and play with .htaccess.

    Requires to install and setup Apache...

Related discussions:

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions