is it apache 404 or a dispatcher exception ?
I have a custom route that will handle file downloads
$router->addRoute('download_file', new Zend_Controller_Router_Route_Regex(
'download/file/(.*)',
array(
'module' => 'default',
'controller' => 'download',
'action' => 'file',
)
);
For know the fileAction only prints the parameter.
The following url works:
http://localhost/download/file/foo.bar
The following urls do not work:
http://localhost/download/file/foo_bar
http://localhost/download/file/foo-bar
As soon as I add an underscore or a dash it returns a 404 error
Tried using ZF 1.5.3 and now 1.7.0
help please
is it apache 404 or a dispatcher exception ?
Looks like its from apache, as I was checking that my exceptions where thrown it hit me.
if its from apache... its must be my rewrite rule that's messed up.Indeed it was, I'm not using the one off the book since some parts of the site are not mvc yet.
anyways thanks a bunch for giving me insight.
stoopid me.
have a nice day