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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:24:15+00:00 2026-06-06T01:24:15+00:00

I am running symfony2 in Windows7 and Xampp: http://localhost/symfony/web/app_dev.php/hello/symfony How do I change web/.htaccess

  • 0

I am running symfony2 in Windows7 and Xampp:

http://localhost/symfony/web/app_dev.php/hello/symfony

How do I change web/.htaccess file to access symfony using the link below?

http://localhost/app_dev.php/hello/symfony

the default .htaccess is:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]

I tried adding Rewrite RewriteBase /symfony/web/ or RewriteBase symfony/web/ then php app/console cache:clear --env=prod --no-debug and also tried restarting apache.

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

And can I do the same in Nginx with Reverse proxy? How to change to access without symfony/web?

  • 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-06T01:24:17+00:00Added an answer on June 6, 2026 at 1:24 am

    tried add 127.0.0.1 www.mysymfony.com.localhost
    into etc/hosts
    add the following into httpd.conf

    # Be sure to only have this line once in your configuration<br>
    NameVirtualHost 127.0.0.1:80
    
    # This is the configuration for your project
    Listen 127.0.0.1:80
    
    <VirtualHost 127.0.0.1:80>
      ServerName www.mysymfony.com.localhost
      DocumentRoot "D:\xampp\htdocs\symfony\web"
      DirectoryIndex app.php
      <Directory "D:\xampp\htdocs\symfony\web">
        AllowOverride All
        Allow from All
      </Directory>
    </VirtualHost>
    

    access this link
    http://www.mysymfony.com.localhost/app_dev.php/demo/hello/symfony
    it gives an error,doesnt have this link

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

Sidebar

Related Questions

I want to access http://localhost/myproject/web/app_dev.php in symfony from my http://localhost/myproject . I have it
I am looking at the possibility of running a PHP-based website (built in symfony)
I'm using PHP with the Symfony framework for my web projects. The framework allows
I successfully completed the configuration check on web/config.php when installing Symfony on a U10
I am a Symfony2 newbie running into problems with edit-forms and doctrine. I seem
I running schema update for Symfony2 gives: Warning: class_parents(): Class Tg\UserBunde\Entity\Person does not exist
I'm trying to get a FacebookLoginTest running. Problem is: the Symfony2 client does not
I'm trying to get Symfony 2.0.14 running at my local PC but get this
I'm using Symfony 1.4 and Doctrine. So far I had no problem running tasks
I am running Symfony 1.3.2 on Ubuntu. I need to write a batch script

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.