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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:28:16+00:00 2026-05-13T15:28:16+00:00

Symfony uses the following typical .htaccess file: Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On

  • 0

Symfony uses the following typical .htaccess file:

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

and I have this as my vhost:

<VirtualHost 127.0.0.1:80>
    ServerName jobeet.loc
    DocumentRoot "C:/wamp/www/jobeet/web"
    DirectoryIndex index.php
<Directory "C:/wamp/www/jobeet/web">
    AllowOverride All
    Allow from All
</Directory>

Alias /sf "C:/wamp/lib/symfony-1.4.1/data/web/sf"
<Directory "C:/wamp/lib/symfony-1.4.1/data/web/sf">
    AllowOverride All
    Allow from All
</Directory>

The above works perfectly, but I want to know how to map and additional debugging url, http://jobeet.dev to automatically serve the frontend_dev.php file so I can use urls like:
http://jobeet.dev/jobs/…
instead of
http://jobeet.dev/frontend_dev.php/jobs/…
to map to the debug .php file in the framework.

I tried adding a duplicate of the vhost entry and simply changing the servername and directoryindex to
ServerName jobeet.dev
DirectoryIndex frontend_dev.php
but understandably this does not work, as I believe I would need to check the URL in the .htaccess to do this?

Can anyone offer some advice regarding this?

Thanks in advance!
🙂

  • 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-13T15:28:16+00:00Added an answer on May 13, 2026 at 3:28 pm

    First add jobeet.dev as a ServerAlias in your current VirtualHost so it can share the same hosting configuration:

    <VirtualHost 127.0.0.1:80>
        ServerName jobeet.loc
        ServerAlias jobeet.dev
        DocumentRoot "C:/wamp/www/jobeet/web"
        ....
    

    Don’t forget to restart Apache when you’re done.

    Next, turn on no_script_name in your dev configuration in apps/frontend/config/settings.yml:

    dev:
      .settings:
        no_script_name: true
    

    Now your dev web controller (frontend_dev.php) won’t show up in your auto-generated URLs (from link_to(), url_for(), etc).

    Finally, set up a RewriteRule for your dev domain before your production controller comes in to play to route everything coming in at jobeet.dev to your dev web controller:

      RewriteEngine on
      ...
      ...
      RewriteCond %{HOST_NAME} ^jobeet\.dev$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ frontend_dev.php [QSA,L]
    
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php [QSA,L]
    

    That should do it.

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

Sidebar

Related Questions

Accordingly to this doc page: http://symfony.com/doc/current/cookbook/controller/error_pages.html Symfony uses the TwigBundle to control the display
Why symfony 2 uses both, the deps file and the composer.json file? I can
In Symfony 2 I have the following code in my Controller: // prepare to
I'm writing an open source application uses some Symfony components, and using Symfony Console
I am using Symfony 1.3.2 and I have a page that uses a partial
Symfony uses the schema.yml to create a module for every db table. So consider
I'm attempting to do something using Silex (which uses the Symfony routing component -
Symfony uses the classloader class in its autoloader.. I have seen tutorials that use
I have a project that I wrote in PHP/symfony that uses 45 tables. I'm
I have a symfony app that uses the json_encode and json_decode to keep a

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.