Dispatcher rule or another solution
Greetings,
Our client has asked us to shorten a url, the request is as follows, the full path to the url would be
www.example.com/check-in-external-root/check-in-external
content/tib/de/check-in-external-root/check-in-external
Now, we have tried a few things,
RewriteCond %{HTTP_HOST} ^(.*)example.com$
RewriteCond %{REQUEST_URI} !^/etc
RewriteCond %{REQUEST_URI} !^/content/dam
RewriteCond %{REQUEST_URI} !^/libs
RewriteCond %{REQUEST_URI} !^/(.*).jpeg
RewriteCond %{REQUEST_URI} !^/(.*).json
RewriteCond %{REQUEST_URI} !^/(.*).png
RewriteCond %{REQUEST_URI} !^/(.*).html
RewriteCond %{REQUEST_URI} !^/(.*).pdf
RewriteCond %{REQUEST_URI} !^/(.*).mp4
RewriteCond %{REQUEST_URI} !^/(.*).xml
RewriteCond %{REQUEST_URI} !^/en/(.*)
RewriteRule ^/check-in-external$ /content/tib/de/check-in-external-root/check-in-external [PT,L]
or
RewriteCond %{HTTP_HOST} ^(.*)example.com$
RewriteCond %{REQUEST_URI} !^/etc
RewriteCond %{REQUEST_URI} !^/content/dam
RewriteCond %{REQUEST_URI} !^/libs
RewriteCond %{REQUEST_URI} !^/(.*).jpeg
RewriteCond %{REQUEST_URI} !^/(.*).json
RewriteCond %{REQUEST_URI} !^/(.*).png
RewriteCond %{REQUEST_URI} !^/(.*).html
RewriteCond %{REQUEST_URI} !^/(.*).pdf
RewriteCond %{REQUEST_URI} !^/(.*).mp4
RewriteCond %{REQUEST_URI} !^/(.*).xml
RewriteCond %{REQUEST_URI} !^/en/(.*)
RewriteRule ^/check-in-external$ /content/tib/de/check-in-external-root/check-in-external.html [PT,L]
also
RewriteCond %{HTTP_HOST} ^(.*)example.com$
RewriteCond %{REQUEST_URI} !^/etc
RewriteCond %{REQUEST_URI} !^/content/dam
RewriteCond %{REQUEST_URI} !^/libs
RewriteCond %{REQUEST_URI} !^/(.*).jpeg
RewriteCond %{REQUEST_URI} !^/(.*).json
RewriteCond %{REQUEST_URI} !^/(.*).png
RewriteCond %{REQUEST_URI} !^/(.*).html
RewriteCond %{REQUEST_URI} !^/(.*).pdf
RewriteCond %{REQUEST_URI} !^/(.*).mp4
RewriteCond %{REQUEST_URI} !^/(.*).xml
RewriteCond %{REQUEST_URI} !^/en/(.*)
RewriteRule ^/check-in-external/?$ /content/tib/de/check-in-external-root/check-in-external.html [PT,L]
or simply
RewriteCond %{HTTP_HOST} ^(.*)example.com$
RewriteRule ^/check-in-external$ /content/tib/de/check-in-external-root/check-in-external.html [PT,L]
We sadly need the root page, so removing it is not an option
None of them have worked so far, is there a way through dispatcher or etc/maps to accomplish this?
Thanks in advance!
Best Regards,
Daniel

