Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3969166
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:55:52+00:00 2026-05-20T03:55:52+00:00

I have two modules that should over ride other urls, basically /management/category/edit/id/1 (Edit Category

  • 0

I have two modules that should over ride other urls, basically

/management/category/edit/id/1 (Edit Category Page)

/management/category/index (Index Page Of Category in Management Module)

/management/category (Index Page Of Category in Management Module)

/women-like-men/category (URL Routed from /default/category/view/id/women-like-men)

The rules for the above are:

    $router->addRoute('view-category',      new Zend_Controller_Router_Route(':id/category/:page',  array('module' => 'default', 'controller' => 'category', 'action' => 'view', 'page' => null)));
    $router->addRoute('management/category',    new Zend_Controller_Router_Route('management/category/',    array('module' => 'management', 'controller' => 'category', 'action' => 'index')));

There are alot of similar pages like this that “conflict” (Gallery, Movie, User) etc.

What I would really like is a rule that says /management/* route to module management/controller/action and ignore the rules below, anything with /management over rides. The likely hood of a user/gallery/movie/category being called management is low anyway.

Is it possible?

Edit, I have made this:

    $router->addRoute('administration',         new Zend_Controller_Router_Route_Regex('management/?(.*)/?(.*)', array('module' => 'management'), array(1 => 'controller', 2 => 'action')));

/management/category works fine, however anything after results in a 404

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:55:53+00:00Added an answer on May 20, 2026 at 3:55 am

    This should be straightforward. The order your routes are defined is important – they are checked in reverse order, so in order for your management rule to ‘override’ the others you want it to be defined last (i.e. after all your other routes). Something like this (which is basically what you have) should work:

    $route = new Zend_Controller_Router_Route(
        'management/:controller/:action/*',
        array(
            'module' => 'management'
            'controller' => 'index',
            'action' => 'index'
        )
    );
    $router->addRoute('management', $route);
    

    If any of your management URLs are still 404’ing after this then they’re not matching that route, so it either needs adjusting or you need some other management routes to match the other cases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two different modules that need access to a single file (One will
In my code base I find that two modules have structures with the same
I have two modules A, B. A has a function f() that is globally
I am working on a transliteration tool. I have two modules lexer and translator.
I have these two modules : package G1; sub new { my $class =
I have an application (CC) containing two modules: CC-ejb and CC-war. CC-ejb contains JPA
I have two DropDownListBoxes one is called ddlDay and the other is ddlMonth. As
I have two backbone Views. One is the main view and the other is
Consider this scenario: I have a project with two modules and one common module
I was thinking many times, now days that we have Linq and other CLR

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.