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

Run Slim4 in subdirectories #2784

Closed
dominikzogg opened this issue Aug 8, 2019 · 2 comments
Closed

Run Slim4 in subdirectories #2784

dominikzogg opened this issue Aug 8, 2019 · 2 comments
Labels

Comments

@dominikzogg
Copy link

I tried to compare the performance of Slim4 and Slim3 and used https://github.com/kenjis/php-framework-benchmark for that.

Cause this benchmarking tool tests frameworks with the same virtual host they all run in subdirectories.

When i tried to run it with slim4 it always failed cause route not found.

In Slim3 there was the following code in its PSR7 implementation:

https://github.com/slimphp/Slim/blob/3.x/Slim/Http/Uri.php#L196-L214

Which i totally understand you dropped it, but is there an alternative concept that i am not aware of?

@l0gicgate
Copy link
Member

What is the underlying http server? If it's apache you may need to do a rewrite in your .htaccess file.

I know this is Zend documentation but it may be of help:
https://docs.zendframework.com/zend-expressive/v3/cookbook/using-a-base-path/

I think this is also related to this issue:
#2512

@dominikzogg
Copy link
Author

Thanks for the link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants