0
votes

Noticed a big massive loophole in my symfony site. If I visit localhost:8080/frontend_dev.php/module [naturally the indexSuccess.php file gets executed] I get the desired file... however, if I go onto: localhost:8080/module, then it returns a 500 internal server error.

This is obviously going to be a biiiig problem once I migrate to production [heck, I have migrated and it is the problem].

I am sure I am missing a trick here, just what I am not sure!

Thanks!

1

1 Answers

0
votes

Not sure if this is a real question, but why would you think not including the controller would work?

# wrong
localhost:8080/module

# right - By default Controller needs .php extension
localhost:8080/frontend.php/module

Also, you can check the 500 internal server error by tailing your php error_log, assuming you have logging turned on.