Skip to content

[feature request] rewrite path #120

@GuillaumeDesforges

Description

@GuillaumeDesforges

I love using it to mock web apps using HTML pages.
However I'd like to strip the .html extension in URL path.

E.g. instead of requesting /home.html to serve local ./home.html, I'd like to request /home.

I could achieve that with a simple path rewrite, e.g. a CLI option --path-rewrite with a regex.

simple-http-server --path-rewrite='s/*.html$//'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions