#DirectoryIndex index.php SetEnv PROJECT_DIR /var/www/html/biomaps/projects/template/ SetEnv OB_LIB_DIR /var/www/html/biomaps/libs/ RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^biomaps [NC] RewriteRule ^(.*)$ http://localhost/biomaps/projects/template/$1 [L,R=301] RewriteRule ^(upload)$ /biomaps/projects/template/includes/upload.php?%{QUERY_STRING} [NC,L] RewriteRule ^(upload)/$ /biomaps/projects/template/includes/upload.php?%{QUERY_STRING} [NC,L] RewriteRule (geomtest)$ /biomaps/projects/template/includes/geomtest.php?%{QUERY_STRING} [NC,L] RewriteRule (geomtest)/$ /biomaps/projects/template/includes/geomtest.php?%{QUERY_STRING} [NC,L] RewriteRule (ajax)$ /biomaps/projects/template/includes/afuncs.php?%{QUERY_STRING} [NC,L] RewriteRule (getphoto)$ /biomaps/projects/template/includes/photos.php?%{QUERY_STRING} [NC,L] RewriteRule (getphoto)/$ /biomaps/projects/template/includes/photos.php?%{QUERY_STRING} [NC,L] #RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{QUERY_STRING} access=(.*)$ [NC] RewriteRule (.*)$ /biomaps/pds/service.php?access=%1&URI=%{REQUEST_URI} #RewriteCond %{QUERY_STRING} projects/(\w+)/includes/ [NC] #RewriteRule (.*)$ $1 [E=URI:%1] # abc123?form=58&type=api&access=abc123 # ?form=58&type=api&access=abc123 #SetEnvIf Request_URI "(.*)" ACCESS=1 #RewriteEngine On # Ez szép de így látszik a map fájl path a response xml-ben. Ezért jobb az ENV változót hazsnálni #RewriteCond %{QUERY_STRING} ^(.*)DINPI_PRIVATE_MAP(.*)$ #RewriteRule mapserv?(.*) mapserv?%1/home/banm/web/biomaps/template/private/private.map%2 #RewriteCond %{REQUEST_URI} mapserv #RewriteRule mapserv?(.*) /cgi-bin/mapserv?%{QUERY_STRING} [L]