MonsieurTweek/PitchMyGame/master/.htaccess - Htaccess File

MonsieurTweek/PitchMyGame/master/.htaccess

# Copy this file to a new file called .htaccess in your eZ Publish root
# to secure your installation by turning on .htaccess based virtual host mode.
DirectoryIndex index.php
RewriteEngine On
#RewriteBase /

RewriteRule ^api/ index_rest.php [L]
RewriteRule ^index_rest.php - [L]
RewriteRule ^([^/]+/)?content/treemenu.* index_treemenu.php [L]
RewriteRule ^var/([^/]+/)?storage/images(-versioned)?/.* - [L]
RewriteRule ^var/([^/]+/)?cache/(texttoimage|public)/.* - [L]
RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L]

RewriteRule ^external.php - [L]

# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment the following:
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]

# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# uncomment the following:
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www. [NC]
#RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascript|fonts?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^var/storage/packages/.* - [L]

# Makes it possible to placed your favicon at the root of your
# eZ Publish instance. It will then be served directly.
RewriteRule ^favicon.ico - [L]

# Uncomment the line below if you want you favicon be served from the standard design.
# You can customize the path to favicon.ico by replacing design/standard/images/favicon.ico
# by the adequate path.
#RewriteRule ^favicon.ico /design/standard/images/favicon.ico [L]
RewriteRule ^design/standard/images/favicon.ico - [L]

# Give direct access to robots.txt for use by crawlers (Google, Bing, Spammers..)
RewriteRule ^robots.txt - [L]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^var/cache/debug.html.* - [L]
# RewriteRule ^var/[^/]+/cache/debug.html.* - [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]
RewriteRule .* index.php

On Github License

Files

Download PDF of Htaccess file
ENV, HTTP_HOST, protossl, REQUEST_URI

Comments

Apache