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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:45:52+00:00 2026-05-27T16:45:52+00:00

I have a symfony2 project and I would like to create route (prefix) which

  • 0

I have a symfony2 project and I would like to create route (prefix) which would point to my old project which sits on its own in one folder (its not a MVC project). I have decided to create folder inside vendor with name of my old project (symfony/vendor/myOldProject).

So rules are:

  • http://symfony/oldproject/ -> points to the folder or specific file
    like (index.php) "symfony/vendor/myOldProject"
  • pass all traffic after oldproject/ (all GET parameters)
  • everything without prefix oldproject will use standard symfony2 routing

Basicaly instead of (routing.yml):

OldProject_homepage:

pattern:  /oldproject/
defaults: { _controller: AcmeDemoBundle:Default:index }

Use:

OldProject_homepage:

pattern:  /project/
defaults: { /vendor/myOldProject }

How to do it?

  • 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-27T16:45:53+00:00Added an answer on May 27, 2026 at 4:45 pm

    I think it’s easier to do with a mod_rewrite rule.
    Heck, just storing old project in a separate folder under web (i.e. /web/project/) should do the trick if you’re careful with access rules for code folders

    But if you absolutely insist on symfony2 solution, then you will probably need to write a bridge bundle between your old project and new symfony2 one.

    Definitely no way to do it like you described in examples.

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

Sidebar

Related Questions

I have a join-table which is created by using @ORM\ManyToMany annotation in Symfony2/Doctrine. It
How can I create a new project that only uses the Symfony2 Console component?
I have a regular class in my Symfony2 project: class RangeColumn extends Column{ //...
I'm new here and on a research trip. We would like to use Symfony2
im working on a symfony project and one of the things i have to
I have a symfony project which, because of DNS issues, is http://<project-name>/ locally, but
Straight to the point -- I have a Symfony 1.3 / Propel 1.4 project.
I am re-writing an old project using Symfony2 so I can try out the
i'm currently adapting an existing Symfony project to my needs and would like to
Let's say I have two entities in my Symfony2 project : Category and Article

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.