2020-08-14 13:36:36 +02:00
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
|
|
|
|
################ FRONTEND DRUPAL konfiguracija ################
|
2022-05-03 15:24:29 +02:00
|
|
|
## Drupal API call
|
|
|
|
#RewriteRule ^api/drupal/(.*) frontend/drupal.php?action=$1
|
|
|
|
|
2020-08-14 13:36:36 +02:00
|
|
|
## 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]
|
2022-05-03 15:24:29 +02:00
|
|
|
RewriteRule ^api/drupal/(.*) frontend/drupal.php?action=?$1
|
2020-08-14 13:36:36 +02:00
|
|
|
|
|
|
|
## 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
|
|
|
|
|
2020-08-18 12:12:06 +02:00
|
|
|
## Evoli moduli - samo na evoli instalaciji
|
2020-08-14 13:36:36 +02:00
|
|
|
## RewriteRule ^team_meter.php\b(.*) admin/survey/modules/mod_EVOLI/team_meter.php?%{QUERY_STRING}
|
2020-08-18 12:12:06 +02:00
|
|
|
## 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}
|
2020-08-14 13:36:36 +02:00
|
|
|
|
|
|
|
## 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
|