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

  • Home
  • SEARCH
  • 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 504409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:29:38+00:00 2026-05-13T06:29:38+00:00

An application I’m working with has the page structure setup such so that when

  • 0

An application I’m working with has the page structure setup such so that when you create a new page and view it, the URI is:

http://site.com/page/open/title/Contact Us

A client has requested that we need shortened urls, so for example the prior URI should be something like http://site.com/contact-us/

The reason why there’s a generic page controller is because these pages have editable content regions in an admin area and it’s much easier controlling them with this type of structure.

In regards to the request of shortening them, how should I go about this? Should I, for example, create controllers for each of the 20 pages and somehow reroute them, or setup some method in my initial page controller as a shortcut to open/title/ such as page/name/Contact Us? I would think that relying on custom rewrite rules is a dirty solution and I shouldn’t need to use any, perhaps I’m wrong?

By the way, some of these pages will also have custom dynamic content such as forms, so they’re not all purely html/static. Any advice is appreciated.

  • 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-13T06:29:39+00:00Added an answer on May 13, 2026 at 6:29 am

    you must create "slug" for page title. it’ll be like ‘contact-us’ and save it

    then use standart router functionality

    routes.showarticles.type = "Zend_Controller_Router_Route_Regex"
    routes.showarticles.route = "articles(?:/([a-zA-Z\-]+))?"
    routes.showarticles.reverse = "articles/%s"
    routes.showarticles.defaults.controller = "posts"
    routes.showarticles.defaults.action = "show-articles"
    routes.showarticles.map.1 = "slug"
    routes.showarticles.defaults.slug = slug
    

    something like this

    or u can do like stackoverflow including page_id in url and optional slug part
    like

    http://zagon.org/articles/ku-ka-re-ku/56/edet-kujvashev-na-velosipede-7

    http://zagon.org/articles/ku-ka-re-ku/56

    EDIT

    protected function _initRoutes()
    {
        if ($this->hasOption('routes')) {
            $this->bootstrap('frontController');
            $frontController = $this->getResource('frontController');
            /* @var $router Zend_Controller_Router_Rewrite */
            $router = $frontController->getRouter();
            $router->addConfig(new Zend_Config($this->getOption('routes')));
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 303k
  • Answers 303k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here's a nice performance comparison. According to it Array.forEach is… May 13, 2026 at 8:36 pm
  • Editorial Team
    Editorial Team added an answer Try building your own using this site: http://gskinner.com/RegExr/ May 13, 2026 at 8:36 pm
  • Editorial Team
    Editorial Team added an answer try making your condition more explicit by adding (...), like… May 13, 2026 at 8:36 pm

Related Questions

An application I have recently started work on has to register two dll's, because
An application I've been working with is failing when I try to serialize types.
An application I maintain has been around since VB6 days - ported to .Net
An application I wrote for a client almost 2 years ago using Flex 2
An application I'm working on requires logging of actions, user who performs the action,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.