albertstclair/symfony2/master/web/.htaccess - Htaccess File

albertstclair/symfony2/master/web/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On

    #<IfModule mod_vhost_alias.c>
    #    RewriteBase /
    #</IfModule>

#    RewriteCond %{REQUEST_FILENAME} !-f    
#    RewriteRule ^(.*)$ app.php [QSA,L]
    # skip "real" requests
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule .* - [QSA,L]

    # hello
    RewriteCond %{REQUEST_URI} ^/hello/([^/]+)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING__route:hello,E=_ROUTING_name:%1,E=_ROUTING_DEFAULTS__controller:AcmeDemoBundle:Demo:hello]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache