RewriteEngine on

RewriteRule  ^zapomenute-heslo/$ /user/lostPass.php [L,QSA]
RewriteRule  ^prihlaseni/$ /user/login.php [L,QSA]
RewriteRule  ^registrace/$ /user/register.php [L,QSA]
RewriteRule  ^uzivatele/$ /admin/users.php [L,QSA]
RewriteRule  ^transakce/$ /admin/transakce.php [L,QSA]
RewriteRule  ^statistiky/$ /admin/statistiky.php [L,QSA]
RewriteRule  ^vyrobci/$ /admin/vyrobci.php [L,QSA]
RewriteRule  ^vyrobci/statistiky/$ /admin/vyrobci_stats.php [L,QSA]
RewriteRule  ^vyrobci/([0-9]+)/$ /admin/vyrobci.php?vyrobce_id=$1 [L,QSA]
RewriteRule  ^vyrobci/([0-9]+)/statistiky/$ /admin/vyrobce_stats.php?vyrobce_id=$1 [L,QSA]
RewriteRule  ^sklady/([0-9]+|zbozi)/$ /admin/sklady.php?sklad_id=$1 [L,QSA]
RewriteRule  ^sklady/zbozi/statistiky/([0-9]+)/$ /admin/zbozi_stats.php?zbozi_id=$1 [L,QSA]
RewriteRule  ^sklady/$ /admin/sklady.php [L,QSA]
RewriteRule  ^vydaje/$ /admin/vydaje.php [L,QSA]
RewriteRule  ^vydaje/uhrada/$ /admin/vydaje-uhrada.php [L,QSA]
RewriteRule  ^zmena-hesla/$ /user/changePass.php [L,QSA]
RewriteRule  ^fakturacni-udaje/$ /user/fakturacni-udaje.php [L,QSA]
RewriteRule  ^faktura-([0-9]+|nahled)/$ /faktura.php?id=$1 [L,QSA]
RewriteRule  ^uhrada-([0-9]+)/$ /uhrada.php?faktura_id=$1 [L,QSA]
RewriteRule  ^fakturace/$ /admin/fakturace.php [L,QSA]
RewriteRule  ^fakturace/([0-9]+)/$ /admin/fakturace.php?showId=$1 [L,QSA]
RewriteRule  ^sluzby/$ /admin/sluzby.php [L,QSA]
RewriteRule  ^nastaveni/$ /admin/nastaveni.php [L,QSA]

RewriteRule  ^api/([^\./]+[^/])$ api/$1.php [L,QSA]

RewriteRule  ^razitko/([0-9]+)/$ /razitko.php?id=$1 [L,QSA]
RewriteRule  ^soubor/([0-9]+)/$ /soubor.php?id=$1 [L,QSA]
