Use symfony 1.4 without changing apache configuration
Posted
by aRagnis
on Stack Overflow
See other posts from Stack Overflow
or by aRagnis
Published on 2010-05-22T19:18:30Z
Indexed on
2010/05/22
19:30 UTC
Read the original article
Hit count: 261
Is it possible to set the /web directory as webroot whithout changing apache configuration file?
I tried using the following .htaccess code, but if i go to localhost/module/, it displays 404 error. But if i go to localhost/web/module/ then everything works.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule sf/(.*) lib/vendor/symfony/data/web/sf/$1 [L]
RewriteRule ^$ web/ [L]
RewriteRule (.*) web/$1 [L]
</IfModule>
© Stack Overflow or respective owner