From 31811423689b2b43a53df54cf21b3765515448b5 Mon Sep 17 00:00:00 2001 From: Petr Pridal Date: Wed, 21 May 2014 10:31:37 +0200 Subject: [PATCH] Refactoring of .htaccess --- .htaccess | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.htaccess b/.htaccess index 0c76e7e..5773856 100644 --- a/.htaccess +++ b/.htaccess @@ -1,27 +1,27 @@ # tileserver.php integration with Apache via .htaccess -# Restrictions for data crawlers -#Options -Indexes - -# Optional CORS header for cross-domain origin access to all data -# -# Header set Access-Control-Allow-Origin * -# - -# Mapping of the WMTS standardized URLs to real files and XML capabilities to tileserver.php - #check htaccess functionality DirectoryIndex tileserver.php RewriteEngine on -#some hostings require RewriteBase e.g. 1&1.com +# Option: some hostings require RewriteBase e.g. 1&1.com #RewriteBase / -#RewriteBase /server/ +#RewriteBase /directory/ -#some hostings require -MultiViews e.g. 1&1.com +# Option: some hostings require -MultiViews e.g. 1&1.com #Options -MultiViews +# Option: Restrictions for data crawlers +#Options -Indexes + +# Option: CORS header for cross-domain origin access to all data +# +# Header set Access-Control-Allow-Origin * +# + +# Mapping of the WMTS standardized URLs to real files and XML capabilities to tileserver.php + # WMTS RESTful # ------------ # The file can be accessed directly: @@ -69,4 +69,4 @@ RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(tileserver\.php) -RewriteRule ^(.*)$ tileserver.php?/$1 [L,QSA] \ No newline at end of file +RewriteRule ^(.*)$ tileserver.php?/$1 [L,QSA]