source: src/webapp/apigility/public/.htaccess@ 74c3571

debian/bullseye
Last change on this file since 74c3571 was 74c3571, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Added gnuboat_mapservice:

it is a REST webservice designed with Apigility to allow the user to upload data, create waters and so on

  • Property mode set to 100644
File size: 838 bytes
Line 
1RewriteEngine On
2# The following rule allows authentication to work with fast-cgi
3RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
4# The following rule tells Apache that if the requested filename
5# exists, simply serve it.
6RewriteCond %{REQUEST_FILENAME} -s [OR]
7RewriteCond %{REQUEST_FILENAME} -l [OR]
8RewriteCond %{REQUEST_FILENAME} -d
9RewriteRule ^.*$ - [NC,L]
10# The following rewrites all other queries to index.php. The
11# condition ensures that if you are using Apache aliases to do
12# mass virtual hosting, the base path will be prepended to
13# allow proper resolution of the index.php file; it will work
14# in non-aliased environments as well, providing a safe, one-size
15# fits all solution.
16RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
17RewriteRule ^(.*) - [E=BASE:%1]
18RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
Note: See TracBrowser for help on using the repository browser.