Message-ID: <226919961.4042.1485856446826.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4041_168078004.1485856446826" ------=_Part_4041_168078004.1485856446826 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
These rewrite rules can be used if you don't have direct access to alter= the virtual host configuration, which is common in a shared hosting setup.= For pure legacy or eZ Publish 4.x installation see .htaccess_root in = the root of the project.
Please find an example of the ".htaccess
" rewrite rules bel=
ow:
# Copy this file to a new file called .htaccess in your eZ Publish web= folder # to secure your installation by turning on .htaccess based virtual host mo= de. # Environment. # Possible values: "prod" and "dev" out-of-the-box, other values possible w= ith proper configuration # Defaults to "prod" if omitted SetEnv ENVIRONMENT "prod" # Whether to use Symfony's ApcClassLoader. # Possible values: 0 or 1 # Defaults to 0 if omitted #SetEnv USE_APC_CLASSLOADER 0 # Prefix used when USE_APC_CLASSLOADER is set to 1. # Use a unique prefix in order to prevent cache key conflicts # with other applications also using APC. # Defaults to "ezpublish" if omitted #SetEnv APC_CLASSLOADER_PREFIX "ezpublish" # Whether to use debugging. # Possible values: 0 or 1 # Defaults to 0 if omitted, unless ENVIRONMENT is set to: "dev" #SetEnv USE_DEBUGGING 0 # Whether to use Symfony's HTTP Caching. # Disable it if you are using an external reverse proxy (e.g. Varnish) # Possible values: 0 or 1 # Defaults to 1 if omitted, unless ENVIRONMENT is set to: "dev" #SetEnv USE_HTTP_CACHE 1 # Defines the proxies to trust. # Separate entries by a comma # Example: "proxy1.example.com,proxy2.example.org" # By default, no trusted proxies are set #SetEnv TRUSTED_PROXIES "127.0.0.1" =20 DirectoryIndex index.php =20 RewriteEngine On # v1 rest API required by Legacy before 5.4.3 and 5.3.6=20 # Uncomment this RewriteRule if you are using 5.4.2 and lower or 5.3.5 and = lower # RewriteRule ^api/[^/]+/v1/ /index_rest.php [L] RewriteRule ^var/([^/]+/)?storage/images(-versioned)?/.* - [L] RewriteRule ^var/([^/]+/)?cache/(texttoimage|public)/.* - [L] RewriteRule ^design/[^/]+/(stylesheets|images|javascript|fonts)/.* - [L] RewriteRule ^share/icons/.* - [L] RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|jav= ascripts?)/.* - [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 stand= ard design. # You can customize the path to favicon.ico by replacing design/standard/im= ages/favicon.ico # by the adequate path. #RewriteRule ^favicon\.ico /design/standard/images/favicon\.ico [L] RewriteRule ^design/standard/images/favicon\.ico - [L] =20 # Give direct access to robots.txt for use by crawlers (Google, Bing, Spamm= ers..) RewriteRule ^robots\.txt - [L] =20 # 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] =20 # 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 / S= ymfony bundles RewriteRule ^bundles/ - [L] =20 # Additional Assetic rules for eZ Publish 5.1 / 2013.4 and higher: ## Don't forget to run php ezpublish/console assetic:dump --env=3Dprod ## and make sure to comment these out in dev environment. RewriteRule ^css/.*\.css - [L] RewriteRule ^js/.*\.js - [L] =20 RewriteRule .* index\.php=20
For instructions on how to set custom environments please refer to the&n= bsp;Installing eZ Publish on a Linux-UNIX based system documentation p= age, under "Defining the desired environment".