Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony 4 routing: only `/` page is working #278

Closed
jeroendesloovere opened this issue May 7, 2018 · 6 comments
Closed

Symfony 4 routing: only `/` page is working #278

jeroendesloovere opened this issue May 7, 2018 · 6 comments

Comments

@jeroendesloovere
Copy link

@jeroendesloovere jeroendesloovere commented May 7, 2018

Hi everybody,

When I deploy my "symfony 4" application to Heroku,
only the / page (route) is working.
Any other routes show the Not Found error.
schermafbeelding 2018-05-07 om 14 19 32

Any ideas on how to solve this one?

@iwan-wijaya

This comment has been minimized.

Copy link

@iwan-wijaya iwan-wijaya commented May 9, 2018

@jeroendesloovere
HI, I was having a similar problem, here is how I get it working for now:

@jeroendesloovere

This comment has been minimized.

Copy link
Author

@jeroendesloovere jeroendesloovere commented May 9, 2018

Hi @iwan-wijaya, thanks for your answer.

I have solved it with your solution.

  1. My Procfile
    web: $(composer config bin-dir)/heroku-php-apache2 public/
  2. composer require apache-pack (using symfony flex) or composer require symfony/apache-pack
@iwan-wijaya

This comment has been minimized.

Copy link

@iwan-wijaya iwan-wijaya commented May 9, 2018

@jeroendesloovere
You can use this one: https://github.com/symfony/recipes-contrib/blob/master/symfony/apache-pack/1.0/public/.htaccess

Or if you have Symfony Flex just run composer require apache-pack

@jeroendesloovere

This comment has been minimized.

Copy link
Author

@jeroendesloovere jeroendesloovere commented May 14, 2018

Closing this one...

@jeroendesloovere

This comment has been minimized.

Copy link
Author

@jeroendesloovere jeroendesloovere commented May 14, 2018

Thanks @iwan-wijaya

@dzuelke

This comment has been minimized.

Copy link
Contributor

@dzuelke dzuelke commented Jul 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.