Results 1 to 3 of 3

Thread: getting 404 with dashed parameter

  1. #1
    digit is offline Junior Member
    Join Date
    Feb 2008
    Posts
    9

    Default getting 404 with dashed parameter

    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

  2. #2
    lordspace is offline Member
    Join Date
    Jan 2008
    Posts
    35

    Default

    is it apache 404 or a dispatcher exception ?

  3. #3
    digit is offline Junior Member
    Join Date
    Feb 2008
    Posts
    9

    Talking rewrite rule

    Quote Originally Posted by lordspace View Post
    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

Similar Threads

  1. Embedded parameter in Zend_Translate
    By thinknirmal in forum Internationalization (i18n) & Localization (l10n)
    Replies: 1
    Last Post: 07-14-2010, 11:24 PM
  2. Parameter Binding and SQL injection
    By adaykin in forum Databases
    Replies: 1
    Last Post: 05-11-2010, 11:29 PM
  3. Pagination With get parameter
    By Sami_ghname in forum General Q&A on Zend Framework
    Replies: 1
    Last Post: 03-02-2010, 12:43 PM
  4. Omit parameter name in URL
    By cheyo in forum Model-View-Controller (MVC)
    Replies: 1
    Last Post: 06-07-2008, 04:13 AM
  5. Passing a URL in a parameter
    By icedcheese in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 10-17-2007, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •