I have a special controller in my app that is basically an out-gate to capture links leaving the app. A typical URL would look like: /_/out/https%3A%2F%2Fmyserver.com%2Fevents%2F
.
I have the route set up properly - I know this because if I go to /_/out/blah-blah-blah
, I get the expected output from the controller action.
With this URL though: /_/out/https%3A%2F%2Fmyserver.com%2Fevents%2F
, all I get is the default
The requested URL /_/out/https://myserver.com/events/ was not found on this server.
404 error page. It's not the usual one from my app, but just the default Apache error page.
In Volt, I'm generating these URLs with: <a href = "/_/out/{{ url|url_encode }}">
. I'm not sure if the problem lies with how I'm encoding the url, or with something in my .htaccess file, which is below:
RewriteEngine On
# Redirect all non-real files to index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]