in site configuration, I would like to map a file extension to a page type.
have path/to/any/page.pdf map to type 101, and path/to/any/page.css map to type 35. Then I’d be able to call different ts-scripts or select different templates and generate pdf output or dynamic css.
What I’ve managed so far is to set up a static route
Static route name: /test.css
Type: Page, File or Url
This is not exactly what I had in mind.
I also have a problem with this workaround on my local test-server. For some reason, it seems that TYPO3 is using curl for the redirect instead of handling it internally. The curl request fails on my local test server because of a self signed certificate.
edit: I forgot to mention that I’m using TYPO3 9 for this project.
edit2: I’ve added the CA to the test-server configuration and curl is working now. I’m still wondering why curl is necessary here.