Reputation: 31709
I have this redirection:
$this->_helper->redirector('freenights/supplierId/' . $sws. '/contractId/' . $con);
It redirects me to this url:
http://contract.local/contracts/freenights%2FsupplierId%2F3%2FcontractId%2F2
but I get this 404 error:
The requested URL /contracts/freenights/supplierId/3/contractId/2 was not found on this server.
If I don't have any problem going directly to
http://contract.local/contracts/freenights/supplierId/3/contractId/2
why am I getting the 404?
Upvotes: 1
Views: 83
Reputation: 57640
Try using goToUrl
method of Redirector
helper. See example 6 in Zend Framework manual
$this->_redirector = $this->_helper->getHelper('Redirector');
$this->_redirector->gotoUrl('freenights/supplierId/' . $sws. '/contractId/' . $con);
Upvotes: 3
Reputation: 1043
I guess you are getting 404 error due to URLEncoder issue, for test try with Header function.
Upvotes: 1