Skip to content

front controller in subdirectory #86

@pine3ree

Description

@pine3ree

I know this sounds silly....but
I cannot make the router to recognize urls when the index.php is inside a subdirectory.
I added the RewriteBase rule but still the router works only if I prepend the subdirectory in rooute definitions.

/path/to/project/web/subdir/index.php
// web/ is the public web folder, the docroot
$dispatcher->setObject('hello',//doesn't work
$dispatcher->setObject('subdir/hello',// works...

what am i missing?

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