pwet

Sign in or create your account | Project List | Help | pwet.fr | Planet eZ Publish.fr | Bioutifoul Photos

pwet Svn Source Tree

Root/trunk/www/.htaccess_root

1# Copy this file to a new file called .htaccess in your eZ Publish root
2# to make the site more secure in non-virtualhost mode (index.php used in urls).
3#
4
5<FilesMatch ".">
6order allow,deny
7deny from all
8</FilesMatch>
9
10<FilesMatch "(^index\.php|favicon\.ico|index_treemenu\.php|\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$">
11order allow,deny
12allow from all
13</FilesMatch>
14
15# If you see "Forbidden" when trying to access root page of your site
16# without 'index.php' appended, uncomment the following "Files" section.
17# NOTE: replace "ezpublish-4.1.0" with base name of the directory
18# where your eZ Publish intallation resides.
19# e.g. base name of "/sites/ezpublish/ezpublish-4.1.0" is "ezpublish-4.1.0".
20
21#<Files "ezpublish-4.1.0">
22# order allow,deny
23# allow from all
24#</Files>
25
26RewriteEngine On
27
28# Allow access to the index_treemenu.php file for a faster admin interface
29RewriteRule content/treemenu/? index_treemenu.php
30RewriteRule ^index_treemenu\.php - [L]
31
32# Uncomment the line below if you placed your favicon at the root of your
33# eZ Publish instance. It will then be served directly.
34#RewriteRule ^favicon\.ico - [L]
35# Uncomment the line below if you want you favicon be served from the standard design.
36# You can customize the path to favicon.ico by replacing design/standard/images/favicon.ico
37# by the adequate path.
38#RewriteRule ^favicon.ico design/standard/images/favicon.ico [L]
39RewriteRule ^design/standard/images/favicon\.ico - [L]
40
41# Uncomment the line below once you set up the right robots.txt file
42# In that case remember to also modify the FilesMatch rule abov
43# More info here http://en.wikipedia.org/wiki/Robots.txt
44#RewriteRule ^robots\.txt - [L]
45
46# Uncomment the line below in case you are using
47# Platform for Privacy Preferences Project ( P3P ) related files.
48# In that case remember to also modify the FilesMatch rule above
49# More info here : http://en.wikipedia.org/wiki/P3p
50#RewriteRule ^p3p/(.+)\.xml - [L]
51
52RewriteRule !(\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$ index.php
53
54DirectoryIndex index.php
55

Archive Download this file

Revision: HEAD