8000 TYPO3 v11+ needs rewrites to work with Symfony Local Web Server · Issue #286 · symfony-cli/symfony-cli · GitHub
[go: up one dir, main page]

Skip to content

TYPO3 v11+ needs rewrites to work with Symfony Local Web Server #286

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

Open
YetiCGN opened this issue Mar 6, 2023 · 2 comments
Open

TYPO3 v11+ needs rewrites to work with Symfony Local Web Server #286

YetiCGN opened this issue Mar 6, 2023 · 2 comments

Comments

@YetiCGN
Copy link
YetiCGN commented Mar 6, 2023

I tried to install TYPO3 11.4 LTS and running it with the Local Web Server, as I've done with version 10 hundreds of times before.

Due to an issue with how they changed their backend URLs, I can't access a working installation of TYPO3 11 with the Local Web Server. The PHP Development Server however, works perfectly fine.

Output of Symfony Local Web Server:

[Web Server ] Mar  6 11:11:06 |INFO   | SERVER POST (200) /typo3/install.php host="127.0.0.1:8004" ip="::1" scheme="https"
[Web Server ] Mar  6 11:11:08 |WARN   | SERVER GET  (404) /typo3/login ip="::1"

Output of PHP Development Server:

$ php8.1 -S localhost:8000 -t public/
[Mon Mar  6 11:29:06 2023] PHP 8.1.16 Development Server (http://localhost:8000) started
[Mon Mar  6 11:29:12 2023] 127.0.0.1:64490 Accepted
[Mon Mar  6 11:29:15 2023] 127.0.0.1:64490 [200]: GET /typo3/login?loginProvider=1433416747
[Mon Mar  6 11:29:15 2023] 127.0.0.1:64490 Closing

Basically it comes down to two front controllers, one in public/index.php (frontend) and the other in public/typo3/index.php (backend). I think what happens is that the URLs get rewritten to use the frontend front controller and the URL login is not found in the frontend.

How can I tell the Symfony Local Web Server to rewrite URLs that start with /typo3 to the backend front controller?

Edit: Oh! Maybe #259 will help. 🤞🏻

@tucksaun
Copy link
Member
tucksaun commented Mar 6, 2023

#259 seems indeed the proper fix for your situation in the long run.
In the meantime, if you want to check that your installation works properly you can try accessing /typo3/index.php/login and see if everything else works.
I don't know how typo3 will behave with this and if it will generate proper URLs considering this, but most PHP frameworks I know are usually able to work with both kinds of URLs so you can try 🤞🏻

@YetiCGN
Copy link
Author
YetiCGN commented Jan 16, 2025 5CE5

Instead of compiling our own build of the Symfony CLI tool, we've patched the TYPO3 front controller in our dev environments with this package: https://packagist.org/packages/explicatis/typo3-front-controller-redirect

In case anybody comes across this problem. Would be nice to see #259 merged, though.

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

No branches or pull requests

2 participants
0