I set up a redirect-page for a Symfony 1.x project.
Rule:
redirect:
url: /:sf_culture/redirect/:url
param: { module: main, action: redirect }
Then, to create the URL of the redirect page, I tried something like:
url_for('@redirect?url='.urlencode('http://symfony-project.org'))
This creates:
/redirect/http%3A%2F%2Fsymfony-project.org
The problem:
When visiting the above link, the server responds with a 404:
The requested URL
/frontend_dev.php/es_ES/redirect/http://symfony-project.org was not
found on this server.
I now retreated to using a query string instead:
/redirect?url=http%3A%2F%2Fsymfony-project.org
This works fine. But is there another solution?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en