RewriteEngine On
#RewriteBase /
AddDefaultCharset utf-8

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
##RewriteRule ^(.*)$ /index.php?sub=$1
##RewriteRule ^([A-Za-z0-9]+])$ index.php?hova=$1 [L,QSA]


RewriteRule ^modul_(.*)$ aoperation.php?select_fomenu=$1 [L,QSA]
RewriteRule ^loadmodul_(.*)$ index_modul_$1.php [L,QSA]


RewriteRule ^slider_meretarany_change$ aoperation.php?change_menuslider_size[L,QSA]
RewriteRule ^menuslider_image_save$ aoperation.php?save_menuslider [L,QSA]
RewriteRule ^menuslider_caption_save$ aoperation.php?save_caption_menuslider [L,QSA]
RewriteRule ^menuslider_caption_delete$ aoperation.php?delete_caption_menuslider [L,QSA]
RewriteRule ^menuslider_selbox_change$ aoperation.php?change_menuslider_selbox [L,QSA]



## stilustanacsok
RewriteRule ^uj_stiluscsoport$ aoperation.php?make_stiluscsoport [L,QSA]
RewriteRule ^select_stiluscsoport$ aoperation.php?stiluscsoport_kivalasztas [L,QSA]
RewriteRule ^editor_upload_image$ aoperation.php?upload_editor_image [NS,PT,QSA]
RewriteRule ^stilustanacsok_ujbejegyzes_mentes$ aoperation.php?save_stilustanacsok_bejegyzes [NS,PT,QSA]
RewriteRule ^stilustanacsok_bejegyzes_modositas$ aoperation.php?change_stilustanacsok_bejegyzes [NS,PT,QSA]

RewriteRule ^stilustanacsok_eleminfo_modbejegyzes_(.*)$ index_modul_static_stilustanacsok_eleminfo_modbejegyzes.php?item=$1 [NS,PT,QSA]

RewriteRule ^stilustanacsok_eleminfo_torlesmegerosites_(.*)$ index_modul_static_stilustanacsok_eleminfo_delbejegyzes_kerdes.php?item=$1 [NS,PT,QSA]

RewriteRule ^stilustanacsok_bejegyzes_veglegestorles$ aoperation.php?del_stilustanacsokelem [NS,PT,QSA]

RewriteRule ^stilustanacsok_csoportnev_modositas$ aoperation.php?change_csoportnev_stilustanacsoknal [NS,PT,QSA]

RewriteRule ^stilustanacsok_csoport_torles$ aoperation.php?del_csoport_stilustanacsoknal [NS,PT,QSA]


RewriteRule ^stilustanacsok_csoportallapot_change$ aoperation.php?change_csoportallapot_stilustanacsoknal [NS,PT,QSA]

RewriteRule ^stilustanacsok_csoportelem_kereses$ aoperation.php?search_csoportelem_stilustanacsoknal [NS,PT,QSA]
RewriteRule ^stilustanacsok_kereso_urit$ aoperation.php?delkif_stilustanacsoknal [NS,PT,QSA]


RewriteRule ^stilustanacsok_elemallapot_modositas$ aoperation.php?change_stilustanacsokelem_allapot [NS,PT,QSA]

RewriteRule ^stilustanacsok_elem_kezdolapon$ aoperation.php?change_stilustanacsokelem_kezdolapon [NS,PT,QSA]

RewriteRule ^stilustanacsok_focim_save$ aoperation.php?save_stilustanacsok_kezdolap_focim [NS,PT,QSA]

RewriteRule ^stilustanacs_leadfoto_save$ aoperation.php?save_stilustanacs_leadfoto [NS,PT,QSA]

RewriteRule ^stilustanacs_leadfoto_delete$ aoperation.php?delete_stilustanacs_leadfoto [NS,PT,QSA]

RewriteRule ^leadfotoszerkeszto_(.*)$ index_modul_static_stilustanacsok_eleminfo_modbejegyzes_leadfotoszerkeszto.php?item=$1 [L,QSA]



##rolunk
RewriteRule ^uj_rolunkmenu$ aoperation.php?make_rolunkmenu [L,QSA]
RewriteRule ^select_rolunkmenu$ aoperation.php?rolunkmenu_kivalasztas [L,QSA]
RewriteRule ^rolunk_csoportallapot_change$ aoperation.php?change_csoportallapot_rolunk [NS,PT,QSA]
RewriteRule ^rolunk_menunev_modositas$ aoperation.php?change_csoportnev_rolunk [NS,PT,QSA]
RewriteRule ^rolunk_menu_torles$ aoperation.php?del_menu_rolunk [NS,PT,QSA]
RewriteRule ^rolunk_ujbejegyzes_mentes$ aoperation.php?save_rolunk_bejegyzes [NS,PT,QSA]
RewriteRule ^rolunk_elemallapot_modositas$ aoperation.php?change_rolunkelem_allapot [NS,PT,QSA]
RewriteRule ^rolunk_eleminfo_modbejegyzes_(.*)$ index_modul_static_rolunk_eleminfo_modbejegyzes.php?item=$1 [NS,PT,QSA]
RewriteRule ^rolunk_eleminfo_torlesmegerosites_(.*)$ index_modul_static_rolunk_eleminfo_delbejegyzes_kerdes.php?item=$1 [NS,PT,QSA]
RewriteRule ^rolunk_bejegyzes_modositas$ aoperation.php?change_rolunk_bejegyzes [NS,PT,QSA]
RewriteRule ^rolunk_bejegyzes_veglegestorles$ aoperation.php?del_rolunkelem [NS,PT,QSA]

##hh
RewriteRule ^uj_hhmenu$ aoperation.php?make_hhmenu [L,QSA]
RewriteRule ^select_hhmenu$ aoperation.php?hhmenu_kivalasztas [L,QSA]
RewriteRule ^hh_csoportallapot_change$ aoperation.php?change_csoportallapot_hh [NS,PT,QSA]
RewriteRule ^hh_menunev_modositas$ aoperation.php?change_csoportnev_hh [NS,PT,QSA]
RewriteRule ^hh_menu_torles$ aoperation.php?del_menu_hh [NS,PT,QSA]
RewriteRule ^hh_ujbejegyzes_mentes$ aoperation.php?save_hh_bejegyzes [NS,PT,QSA]
RewriteRule ^hh_elemallapot_modositas$ aoperation.php?change_hhelem_allapot [NS,PT,QSA]
RewriteRule ^hh_eleminfo_modbejegyzes_(.*)$ index_modul_okos_hogyanhasznald_eleminfo_modbejegyzes.php?item=$1 [NS,PT,QSA]
RewriteRule ^hh_eleminfo_torlesmegerosites_(.*)$ index_modul_okos_hogyanhasznald_eleminfo_delbejegyzes_kerdes.php?item=$1 [NS,PT,QSA]
RewriteRule ^hh_bejegyzes_modositas$ aoperation.php?change_hh_bejegyzes [NS,PT,QSA]
RewriteRule ^hh_bejegyzes_veglegestorles$ aoperation.php?del_hhelem [NS,PT,QSA]


##sugo
RewriteRule ^okos_sugo_modositas$ aoperation.php?okos_sugocontent_change [NS,PT,QSA]


##slider
RewriteRule ^slider_sorting$ aoperation.php?slider_sorrendezes [NS,PT,QSA]
RewriteRule ^menuslider_delete$ aoperation.php?slider_torles [NS,PT,QSA]

#szekcio
RewriteRule ^uj_szekcio$ aoperation.php?make_szekcio [L,QSA]
RewriteRule ^select_sectio$ aoperation.php?sectio_kivalasztas [L,QSA]
RewriteRule ^mod_sectio_name$ aoperation.php?sectio_nev_modositas [L,QSA]
RewriteRule ^mod_sectio_color$ aoperation.php?sectio_szin_modositas [L,QSA]
RewriteRule ^sectio_cropping_image_save$ aoperation.php?sectio_save_bgimage [L,QSA]
RewriteRule ^sectio_bgimage_delete$ aoperation.php?sectio_delete_bgimage [L,QSA]
RewriteRule ^sectio_bejegyzes_modositas$ aoperation.php?change_sectio_bejegyzes [NS,PT,QSA]
RewriteRule ^mod_sectio_api$ aoperation.php?sectio_nev_modul [L,QSA]
RewriteRule ^sectio_allapot_change$ aoperation.php?sectio_change_allapot [L,QSA]
RewriteRule ^sectio_lathatosag_change$ aoperation.php?sectio_change_lathatosag [L,QSA]
RewriteRule ^sectio_torles$ aoperation.php?sectio_delete [L,QSA]



ErrorDocument 403 http://127.0.0.1/okosszekreny/index.php
ErrorDocument 404 http://127.0.0.1/okosszekreny/index.php

#ErrorDocument 403 http://www.okosszekreny.netbuilder.hu/adminfelulet/index.php
#ErrorDocument 404 http://www.okosszekreny.netbuilder.hu/adminfelulet/index.php



<ifModule mod_headers.c>
    Header set Connection keep-alive
    # 1 hetes tárazás
    <filesMatch ".(jpg|jpeg|png|gif|swf|ico|pdf|flv)$">
        Header set Cache-Control "max-age=604800, public"
    </filesMatch>
    # 4 napos tárazás
    <filesMatch ".(xml|txt|css|js)$">
        Header set Cache-Control "max-age=345600, proxy-revalidate"
    </filesMatch>
 </ifModule>



