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 7165703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:17:40+00:00 2026-05-28T14:17:40+00:00

Here is my setup, a bit changed standard edition. # app/config/routing.yml _internal: resource: @AcmeDemoBundle/Controller/

  • 0

Here is my setup, a bit changed standard edition.

# app/config/routing.yml
_internal:
    resource: "@AcmeDemoBundle/Controller/"
    prefix: /{_locale}
    requirements:
        _locale: en|sr

And added /{_locale} in security.yml.

Routes before:

Name                      Method Pattern
_welcome                  ANY    /
_demo_login               ANY    /demo/secured/login
_security_check           ANY    /demo/secured/login_check
_demo_logout              ANY    /demo/secured/logout
acme_demo_secured_hello   ANY    /demo/secured/hello
_demo_secured_hello       ANY    /demo/secured/hello/{name}
_demo_secured_hello_admin ANY    /demo/secured/hello/admin/{name}
_demo                     ANY    /demo/
_demo_hello               ANY    /demo/hello/{name}
_demo_contact             ANY    /demo/contact
_wdt                      ANY    /_wdt/{token}
_profiler_search          ANY    /_profiler/search
_profiler_purge           ANY    /_profiler/purge
_profiler_import          ANY    /_profiler/import
_profiler_export          ANY    /_profiler/export/{token}.txt
_profiler_search_results  ANY    /_profiler/{token}/search/results
_profiler                 ANY    /_profiler/{token}
_configurator_home        ANY    /_configurator/
_configurator_step        ANY    /_configurator/step/{index}
_configurator_final       ANY    /_configurator/final

Routes after:

Name                      Method Pattern
_welcome                  ANY    /
_wdt                      ANY    /_wdt/{token}
_profiler_search          ANY    /_profiler/search
_profiler_purge           ANY    /_profiler/purge
_profiler_import          ANY    /_profiler/import
_profiler_export          ANY    /_profiler/export/{token}.txt
_profiler_search_results  ANY    /_profiler/{token}/search/results
_profiler                 ANY    /_profiler/{token}
_configurator_home        ANY    /_configurator/
_configurator_step        ANY    /_configurator/step/{index}
_configurator_final       ANY    /_configurator/final
_demo_login               ANY    /{_locale}/demo/secured/login
_security_check           ANY    /{_locale}/demo/secured/login_check
_demo_logout              ANY    /{_locale}/demo/secured/logout
acme_demo_secured_hello   ANY    /{_locale}/demo/secured/hello
_demo_secured_hello       ANY    /{_locale}/demo/secured/hello/{name}
_demo_secured_hello_admin ANY    /{_locale}/demo/secured/hello/admin/{name}
_demo                     ANY    /{_locale}/
_demo_hello               ANY    /{_locale}/hello/{name}
_demo_contact             ANY    /{_locale}/contact

Which ofc leads to No route found for "GET /en/demo/hello/World" for /en/demo/hello/World url.

Any idea how to fix this?

Additionally, I would like to implement per domain locale. I was trying https://github.com/schmittjoh/JMSI18nRoutingBundle, but for some reason it does not work with latest Symfony 2.0.9, at least for me. I was following the doc, but I got similar 404 error when trying prefixed urls.

  • 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-28T14:17:40+00:00Added an answer on May 28, 2026 at 2:17 pm

    Defining default values and requirements for placeholders in prefix is not possible in Symfony version 2.0.9. You’d have to upgrade to 2.1, which is currently in active development.

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

Sidebar

Related Questions

So here's my setup: User spins PickerWheel, chooses which section of the app to
I have a bit of a noob question about Windows Setup projects here. I've
We have a setup here that is less than ideal, We have our webserver
Here is my setup. In my application delegate, I have a property called currentFoo.
Here's the setup I have in a vs2008 solution: Data layer in a project
Here's the setup. I have web site which is essentially a simple CMS. Here
Okay, here's the setup: I work in HPC, and we're preparing for the need
I have a weird issue. Here is the setup: I have a NSOperationQueue which
I just started using TestDriven.NET to debug on my tests, here is my setup
I have a FormPanel with 3 fields and a JsonReader. Here's the setup: var

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.