1
0
mirror of https://github.com/klokantech/tileserver-php.git synced 2025-08-06 14:47:21 +02:00

Better router. TileServer now uses .js and .css files from maptiler.com.

This commit is contained in:
Dalibor Janák
2014-04-24 14:56:01 +02:00
parent 2dfb1952aa
commit b6470bd448
2 changed files with 44 additions and 46 deletions

View File

@@ -2,8 +2,8 @@
# Restrictions for data crawlers
Options -Indexes
Options +FollowSymLinks
Options -MultiViews
#Options +FollowSymLinks
#Options -MultiViews
# Optional CORS header for cross-domain origin access to all data
#<ifModule mod_headers.c>
@@ -20,8 +20,6 @@ RewriteEngine on
#some hostings require RewriteBase e.g. 1&1.com
#RewriteBase /
#RewriteBase /folder/
AcceptPathInfo on
# WMTS RESTful
# ------------
@@ -48,4 +46,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]
RewriteRule ^(.*)$ tileserver.php?/$1 [L,QSA]