diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
commit | 19985dbb8c0aa66dc4bf7905abc1148de909097d (patch) | |
tree | 2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /.htaccess.example | |
download | 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip |
Diffstat (limited to '.htaccess.example')
-rw-r--r-- | .htaccess.example | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.htaccess.example b/.htaccess.example new file mode 100644 index 0000000..ae480c5 --- /dev/null +++ b/.htaccess.example @@ -0,0 +1,24 @@ +RewriteEngine On
+
+
+################ 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]
+
+
+## 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]
+
+
+
+## LEPI URL-JI ZA POSAMEZNE ANKETE
|