Page doesn't load without / at the end when indexing a subdirectory PHP

Hello, i have been making a page with lamp-poc so i can use PHP. The problem is that i cannot index a subdirectory without / at the end. Example:
page.glitch.me/test/ * Works
page.glitch.me/test/index.php * Works
page.glitch.me/test * Doesn’t work

Why is this happening?
My project is private but it’s named chancaca.glitch.me (don’t mind the name)

Hey @maumaumaumaumaumau, that’s the default behaviour for PHP/Apache. You might be able to fix that with a rewrite rule, like the one in this Stack Overflow answer.

(I’m moving this to the coding help section of the forum as it’s not really about Glitch itself, and you’ll probably get more help there! :slight_smile:)

1 Like

Thanks! I didn’t know how to solve this until you responded!

1 Like