Skip to content

Instantly share code, notes, and snippets.

@patrickallaert
Last active December 17, 2015 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickallaert/d2d1dfa4042a91e2f3d6 to your computer and use it in GitHub Desktop.
Save patrickallaert/d2d1dfa4042a91e2f3d6 to your computer and use it in GitHub Desktop.
# Give direct access to robots.txt for use by crawlers (Google,
# Bing, Spammers..)
RewriteRule ^/robots\.txt - [L]
# Platform for Privacy Preferences Project ( P3P ) related files
# for Internet Explorer
# More info here : http://en.wikipedia.org/wiki/P3p
RewriteRule ^/w3c/p3p\.xml - [L]
# Uncomment the following lines when using popup style debug in legacy
#RewriteRule ^/var/([^/]+/)?cache/debug\.html.* - [L]
# Following rule is needed to correctly display assets from eZ Publish5 / Symfony bundles
RewriteRule ^/bundles/ - [L]
+
+ # For dev/debug environment, you might want to use the 'development' front controller.
+ # Uncomment the 'RewriteRule' line below to use it.
+ # The following example 'RewriteCond' lines can be used in combination to conditionally use it.
+ #RewriteCond %{HTTP_HOST} = dev.example.com [OR]
+ #RewriteCond %{HTTP_HOST} = dev.admin.example.com
+ #RewriteRule .* /index_dev.php [L]
+
+ # Redirect all requests to the 'production' front controller
RewriteRule .* /index.php
</IfModule>
DocumentRoot /var/www/example/web
ServerName www.example.com
ServerAlias admin.example.com
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment