RewriteEngine On ################ FRONTEND DRUPAL konfiguracija ################ ## root domain # RewriteCond %{REQUEST_URI} ^(/)?$ # RewriteRule ^(.*)$ /frontend/drupal/$1 [L] ## Drupal se nahaja znotraj DOMENA/d/ # RewriteCond %{REQUEST_URI} ^((/)|(/d/(.*)))$ # RewriteRule ^(d)(.*)$ /frontend/drupal/$2 [L] ## index.php mora tudi preusmeriti na drupal # RewriteCond %{REQUEST_URI} ^(/index.php)?$ # RewriteRule ^(.*)$ /frontend/drupal/$1 [L] # Pot do slike, CSS in JS DRUPAL tema RewriteCond %{REQUEST_URI} ^(/tema1ka/(.*))$ RewriteRule ^(tema1ka)(.*)$ /d/sites/all/themes/pro1ka/$2 [L] ## Da preprecimo double content za google # RedirectMatch 301 ^/d/$ / # RedirectMatch 301 ^/d/sl$ / # RedirectMatch 301 ^/d/sl/$ / ## /c/ (bivsi sisplet) kaze na pomoc # RedirectMatch 301 ^/c/ /d/sl/pomoc ## /db/ (bivsi sisplet) tudi kaze na pomoc # RedirectMatch 301 ^/db/ /d/sl/pomoc ################ END FRONTEND DRUPAL ################ ################ FRONTEND SIMPLE konfiguracija ################ RewriteRule ^index.php\b(.*) frontend/simple/index.php?%{QUERY_STRING} RewriteRule ^api/api.php\b(.*) frontend/api/api.php?%{QUERY_STRING} ################ END FRONTEND SIMPLE ################ ## Rewriti za razne module, delovanje anket... RewriteRule ^sa$ index_sa_anketa.php RewriteRule ^koda/(.*) main/survey/sa_koda.php?%{QUERY_STRING} RewriteRule ^a/(.*) main/survey/index.php?anketa=$1&%{QUERY_STRING} RewriteRule ^podatki/(.*?[^/])/(.*[^/])? admin/survey/public.php?anketa=$1&urlhash=$2&%{QUERY_STRING} RewriteRule ^admin/survey/minify/([a-z]=.*) admin/survey/minify/index.php?$1 [L,NE] ## Google OAuth2 prijava RewriteRule ^google-prijava\b(.*) frontend/api/google-oauth2.php$1 ## API RewriteRule ^api/(.*)/survey/([0-9]+)$ admin/survey/api/api.php?action=$1&ank_id=$2 [QSA,NC,L] RewriteRule ^api/(.*)$ admin/survey/api/api.php?action=$1 [QSA,NC,L] ## Rewrite za dl mobilne aplikacije RewriteRule ^hitra1KA mobileApp/downloadApp.php [L,NE] RewriteRule ^hitra1ka mobileApp/downloadApp.php [L,NE] ## Rewrite za instalacijske pakete RewriteRule ^1ka-install /uploadi/downloadApp.php?type=install [L,NE] RewriteRule ^1ka-offline /uploadi/downloadApp.php?type=offline [L,NE] ## Rewrite za racune in predracune RewriteRule ^payment/(.*) frontend/payments/getPdf.php?hash=$1 ## Evoli moduli - samo na evoli instalaciji ## RewriteRule ^team_meter.php\b(.*) admin/survey/modules/mod_EVOLI/team_meter.php?%{QUERY_STRING} ## RewriteRule ^quality_climate.php\b(.*) admin/survey/modules/mod_EVOLI/quality_climate.php?%{QUERY_STRING} ## RewriteRule ^teamship_meter.php\b(.*) admin/survey/modules/mod_EVOLI/teamship_meter.php?%{QUERY_STRING} ## RewriteRule ^organizational_employeeship_meter.php\b(.*) admin/survey/modules/mod_EVOLI/organizational_employeeship_meter.php?%{QUERY_STRING} ## Rewrite za subscription site web push notifications RewriteRule ^wpn admin/survey/modules/mod_WPN/frontend/index.html [NC,L] ## LEPI URL-JI ZA POSAMEZNE ANKETE