I have the following code in my .htaccess that is used by Typo3 / Realurl to get speaking urls.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
So no matter what is written in the URL always the index.php is called. It works perfect, but now I would like to exclude certain paths without creating a folder on the webhost.
So the URL https://www.domain.xy/programs should be passed to the /index.php but the URL https://www.domain.xy/programs/sessions should be passed as /programs/ without session as well without redirecting.
https://www.domain.xy/programs -> index.php -> /programs
https://www.domain.xy/programs/sessions -> index.php -> /programs (without redirect and keeping programs/session in the url)
https://www.domain.xy/weather/today -> index.php -> /weather/today
The reason why I need this, is because there is a VUE Plugin on a Subpage in the CMS that needs its own speaking urls for navigation.
I added the following code to my .htaccess but can't get rid of the redirect.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^programs/. /programs/ [R,L]
Thank you very much!