.htaccess in symfony2 web folder hides the whole folder - apache

I recently installed symfony2 its running on xampp the .htaccess in the /symfony/web folder hides the whole web folder and return a 500 error . i tried deleting the .htaccess in symfony web folder then it shows the folder back in the browser. can you please help me with this please

Related

Blazor Server App routing 404 - File or directory not found

I have created a blazor server app. it is working on my machine when it is running using localhost. There is a folder configured in the IIS for this project.
I have published the project to a folder and then copied/paste the dll files to the configured folder in the IIS.
The main page (index page) is running perfect , but when I tried to click to move to another page, I got the error "404 - File or directory not found".
Note :- when I browse the project from the IIS , the name of the project has been replaced from localhost to abcdef.com.
Could anyone help me to correct the routing problem ?
I think its related to your page definition of your Balzor components. "/" means the root folder of your website. If you want to add this application to your existing website, you probably upload it in a new folder in your host. For example https yourwebsite/app. In this scenario your new application is not root of your website anymore. So your page address should be something like this:
#page "/app/address".

Cannot access folder xampp

I have htdocs/myproject/web folder but I cannot access that web folder, i can access all others folders inside htdocs/myproject/. It doesn't show when I open localhost in web browser and it shows folder structre. Other folders are showing, where could be problem ? .. This project is downloaded from SVN.
You could check if there is a .htaccess file in the directory where indexing is disabled (for example Options -Indexes).

Website not loading on LAMP but test page displays

I have set up my LAMP server on Ubuntu 14.04. I have created a virtual machine to host a website. The directory structure is:
var/www/DS/public_html
I have set up my configuration files so that the server responds to the url:
http://ds.local
I have created test pages inside public_html called index.html and index.php. I have modified the configurations so that index.php is the default page that gets served. In the test page named index.php, the only line of code is:
<?php phpinfo(); ?>
when I go to http://ds.local frrom my browser, the page gets served up and I can see all my php configurations. So. everything good till now.
I have a website which I had developed on WAMP. Now, when I try transferring the files of this website into public_html and try reloading the browser, nothing happens. I have looked at the developer tools window, and I am certain that no page loads.
I have ensured that I have copied all the files and folders making up the website, including all the folders containing js and css. I have also ensured that there exists a file called index.php
Where am I going wrong?
I have a website which I had developed on WAMP
Are you sure that all files are referenced by correct case?
Windows file systems are by default case-insensitive.
http://localhost/DS and http://localhost/ds
are same on windows but not on linux/unix.

Working with local and live websites. issues with subfolders in www folder

I have a live site, example.com and when i have pulled it off to a local enviroment using wampserver i am having some issues
on the live site everything works ok and if I click on a link it will resolve properly
example.com/offices
However on the localcopy because I have other sites in the www folder(as subfolders) I have to access it by
127.0.0.1:8888/example/
and when I click on the same link on the local website it will go to
127.0.0.1:8888/offices/
instead of
127.0.0.1:8888/example/offices/
And the same goes with images as the are all looking for folders in the root rather than the subfolder (www/example)
I have tried using virtual hosts and couldn't get it to work
is there a rule I can put in the htaccess or would I need a seperate install of wamp so it all resides in the www folder?

htaccess for Symfony on Shared Hosting

Im trying to setup a local environment that resembles shared hosting. I have copied the entire project into the htdocs directory, and thus the application does not start by default in the web directory.
For this I found these 2 references:
http://oldforum.symfony-project.org/index.php/m/98117/
http://www.teamlalala.com/blog/2010/05/02/how-to-handle-symfony-on-shared-hosting/
But I have 2 doubts:
1. The .htaccess mentioned in the posts is to be added inside the WEB folder, or in the ROOT folder
2. If added to the ROOT folder, should we remove the default .HTACCESS in WEB?
thanks in advance
You should place .htaccess file in your DOCUMENT_ROOT folder. By default in symfony it is sf_project_dir/web.