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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:14:22+00:00 2026-06-03T05:14:22+00:00

I want to access http://localhost/myproject/web/app_dev.php in symfony from my http://localhost/myproject . I have it

  • 0

I want to access http://localhost/myproject/web/app_dev.php in symfony from my http://localhost/myproject. I have it up and running for app.php:

# Works if I call http://localhost/myproject
<IfModule mod_rewrite.c>
   Options FollowSymLinks

   RewriteBase /myproject/
   RewriteEngine On
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ web/app.php [QSA,L]
</IfModule>

The same fails with app_dev.php. I thought, that the routing.yml get loaded anyway, since I do not have an routing_dev.yml, it should work out of the box – as I thought. But it does not:

# Works not if I call http://localhost/myproject
# Error Message: No route found for "GET /myproject/"

<IfModule mod_rewrite.c>
    Options FollowSymLinks

    RewriteBase /myproject/
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ web/app_dev.php [QSA,L]
</IfModule>

Why’s that?

EDIT:

http://localhost/myproject/web/app_dev.php does work!

EDIT II:
When using the not working .htaccess the images from symfonys error page are fail to load, too.

  • 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-06-03T05:14:23+00:00Added an answer on June 3, 2026 at 5:14 am

    If you are on localhost then you should create a virtual host say localhost.myproject and set web directory as DocumentRoot. If you are in shared hosting then check my answer here to get working asset links.

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

Sidebar

Related Questions

I want to have possibility to access action by the following URL type: http://localhost/MyControllerName/MyActionName/Id1+Id2+Id3+Id4
My asp.net web app is hosted on this URL on my local machine: http://localhost:45433/
I am currently able to register Jabber User ID from http://localhost:5280/xmpp-http-bind/register/ but i want
when user allow my app i receive this type of success url: http://localhost/fbapp/app.php#access_token=AAAAALY8OpPABAM67auStdfgdfOdfgdfgdenqEt9QZCGD2a1h3iWFrhmNWqOf8l4a9RQ8tAJCM9y5QbYpsP6sT1g0ZCXDhtZCECZApGb&expires_in=6604 i
So I have an URL, let's say http://mysite-1.com/img.jpg and I want to acces that
i want to access a integer and a string from a class to all
I want to access a MySQL database and I want to read+write data from+to
I have a web.xml which looks like: <web-app> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <security-constraint> <web-resource-collection> <web-resource-name>Default</web-resource-name>
How protect resouces from outside access in the Web application using jsp - spring
I have a setup like so http://localhost/ http://localhost/ci_tada/ http://localhost/ci_tada/application http://localhost/ci_tada/application/views http://localhost/ci_tada/application/views/css http://localhost/ci_tada/application/views/css/master.css I dont

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.