summaryrefslogblamecommitdiffstats
path: root/.htaccess.example
blob: 3ca1af8874a4a6a3e22c60c97a23d1a8627529ba (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                          






                                     














                                                                                                             
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 ################


## Deny access to the .git directory
RedirectMatch 404 /\.git

## 404 page
ErrorDocument 404 /404.html


## 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