Skip to content

Add a router php for local dev with php builtin server #1609

@mpjanus

Description

@mpjanus

On Windows, the php built-in webserver may stiggle with paths that have dot in the folder name (interprets the dot for file extensions). As a consequence, in some scenarios when linking to a resource with a dot in the folder name, you get a resource not found error even before the index.php is reached. The happens for example of a plugin has multiple dots in its folder name.

I worked around this for themes by renaming the folders, but the better way to do this is add a 'router.php' specifically for local dev and/or using built-in php server.

attached image is chatgpt's suggestion on how to implement

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions