From a9094dd0a0e12a93c76144df68ebe1a532241d09 Mon Sep 17 00:00:00 2001 From: MAY Date: Mon, 14 Nov 2022 11:59:40 +0100 Subject: [PATCH] Brez htaccessa zadeva ne deluje --- .htaccess | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 000000000..d8d4ae92a --- /dev/null +++ b/.htaccess @@ -0,0 +1,19 @@ +RewriteEngine on + +RewriteRule ^index.php\b(.*) frontend/simple/index.php?%{QUERY_STRING} + + +## 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] + +## 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] + + + +