I am using the standard Zend file /public/.htaccess(shown below).
I'm currently trying to redirect the user to a specific controller / action and specify the success redirect URL as a URL parameter.
The resulting URL (compiled and encoded using the Zend URL Browsing Assistant) is as follows:
localhost/crop/index/successRedirect/localhost%2Fprofile%2Fbasic
However, this pattern seems to violate the default rules for Zend code: mod_rewrite: accessing the URL gives a standard Apache 404 error; Zend does not receive the request.
When the final parameter is manually reformatted as follows, the query works as desired:
localhost/crop/index/?successRedirect=localhost%2Fprofile%2Fbasic
However, this requires a hacky two-step process for creating URLs. It would be ideal if the URL created by the view helper worked independently.
What can be done to allow url encoding? Any insight would be appreciated!
This is the contents of my .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Enabling RewriteLog in this way does not create an output for the pattern:
RewriteLogLevel 9
RewriteLog "<path>/rewrite.log"
I tried to offer the solutions offered by the following two Q & A, without changes: