Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony Error The server returned a 404 Not Found

I am new to Symfony.

I just installed Symfony 2.3.2 by following instruction given at http://symfony.com/doc/current/book/installation.html for windows.

When i open

http://localhost/Symfony/web/

then i get error given below

Oops! An Error Occurred

The server returned a "404 Not Found".

However if i run

http://localhost/Symfony/web/app-dev.php

then i get the Welcome page of Symfony.

What settings i need to change to point

http://localhost/Symfony/web/app-dev.php

by calling

http://localhost/Symfony/
like image 217
neeraj Avatar asked Dec 16 '25 17:12

neeraj


1 Answers

Update .htaccess in web directory like this :

<IfModule mod_rewrite.c>
    RewriteEngine On

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

/ will redirect to /app_dev.php

like image 59
rpg600 Avatar answered Dec 19 '25 10:12

rpg600



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!