# AddDefaultCharset UTF-8 # Cache-elunk - EXPIRES ExpiresActive On #ExpiresDefault A300 ExpiresByType image/gif A604800 ExpiresByType image/png A604800 ExpiresByType image/jpg A604800 ExpiresByType image/jpeg A604800 ExpiresByType image/x-icon A604800 ExpiresByType application/x-javascript A604800 ExpiresByType text/css A604800 #ExpiresByType application/pdf A259200 #ExpiresByType application/x-shockwave-flash A604800 #ExpiresByType video/x-flv A604800 #ExpiresByType text/plain A300 #ExpiresByType text/html A300 # Cache-elunk - HEADERS (regexp-nel nincs $ a vegen, hogy igy lehessen utana is valami) Header set Cache-Control "max-age=604800" # Insert filter #SetOutputFilter DEFLATE # zlib's compression level (default 6) - Ezt itt nem lehet! #DeflateCompressionLevel 4 # example of how to compress ONLY html, plain text and xml AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css text/javascript application/javascript application/x-javascript #AddOutputFilter DEFLATE .html .htm .txt .css .js .xml #RemoveOutputFilter .flv # Don't compress flash files (only relevant if you host your own videos) #SetEnvIfNoCase Request_URI \.flv$ no-gzip dont-vary # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 # the above regex won't work. You can use the following # workaround to get the desired effect: BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html # Don't compress images #SetEnvIfNoCase Request_URI \ #\.(?:gif|jpe?g|png)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary RewriteEngine on RewriteBase / # gamestar.hu -> www.gamestar.hu (google optimalizalas miatt) RewriteCond %{HTTP_HOST} ^devcorner.hu$ RewriteRule ^(.*)$ http://www.devcorner.hu/$1 [R=301,L] # permanent redirect # /tesztek akkor atiranyitjuk a /mobiltelefon_tesztek RewriteCond %{REQUEST_URI} ^/tesztek$ RewriteRule ^(.*)$ http://www.devcorner.hu/mobiltelefon_tesztek [R=301,QSA,L] # permanent redirect # /tesztek/barmi akkor atiranyitjuk a /mobiltelefon_tesztek/barmi RewriteCond %{REQUEST_URI} ^/tesztek/(.*)$ RewriteRule ^tesztek/(.*)$ http://www.devcorner.hu/mobiltelefon_tesztek/$1 [R=301,QSA,L] # permanent redirect # apix_collect hibas keplinkeles eseten RewriteCond %{REQUEST_URI} ^/apix_collect/(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /skins/default/gfx/dummy_mp.gif [L,QSA] # data hibas keplinkeles eseten RewriteCond %{REQUEST_URI} ^/data/(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /skins/default/gfx/dummy_mp.gif [L,QSA] # kep.php hibas keplinkeles eseten RewriteCond %{REQUEST_URI} ^/kep.php(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /skins/default/gfx/dummy_mp.gif [L,QSA] # regi rss linkek is mukodjenek RewriteCond %{REQUEST_URI} ^/(rss|rss_nospons)(/)?$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /rss/rss.xml [L,QSA] RewriteCond %{REQUEST_URI} ^/rss/(devcorner|cimoldal)(/)?$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /rss/rss.xml [L,QSA] RewriteCond %{REQUEST_URI} ^/rss/hirek(/)?$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /rss/hirek.xml [L,QSA] RewriteCond %{REQUEST_URI} ^/rss/tesztek(/)?$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /rss/tesztek.xml [L,QSA] RewriteCond %{REQUEST_URI} ^/out/gsmport/rss/2.0.xml$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /rss/rss.xml [L,QSA] # Mediafed RSS redirect #RewriteCond %{HTTP_USER_AGENT} !^MediafedMetrics.* #RewriteRule rss/rss.xml http://hu.gamestar.feedsportal.com/c/33352/f/566121/index.rss [R=302,L] #RewriteCond %{HTTP_USER_AGENT} !^MediafedMetrics.* #RewriteRule rss/pc.xml http://hu.gamestar.feedsportal.com/c/33352/f/566126/index.rss [R=302,L] #RewriteCond %{HTTP_USER_AGENT} !^MediafedMetrics.* #RewriteRule rss/xbox.xml http://hu.gamestar.feedsportal.com/c/33352/f/566127/index.rss [R=302,L] #RewriteCond %{HTTP_USER_AGENT} !^MediafedMetrics.* #RewriteRule rss/ps.xml http://hu.gamestar.feedsportal.com/c/33352/f/566128/index.rss [R=302,L] #RewriteCond %{HTTP_USER_AGENT} !^MediafedMetrics.* #RewriteRule rss/lezser.xml http://hu.gamestar.feedsportal.com/c/33352/f/566129/index.rss [R=302,L] #RewriteCond %{HTTP_USER_AGENT} !^MediafedMetrics.* #RewriteRule rss/melyviz.xml http://hu.gamestar.feedsportal.com/c/33352/f/566130/index.rss [R=302,L] RewriteCond %{REQUEST_URI} !\.(gif|jpe?g|png|txt|js|css|ico)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?dc_cmds=$1 [L,QSA] #RewriteCond %{REQUEST_URI} \.(gif|jpe?g|png|txt|js|css)$ #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule ^(.*)/(css|images|js|apix|apix_collect|bannerek|gfx|img|menu|skin|skins)/(.*)$ $2/$3 [L,QSA] #deny from all #allow from 213.222.145.193 #allow from 213.178.97.162 #allow from 82.131.209.183 #allow from 66.114.52.45 #allow from 84.2.254.220 #allow from 127.0.0.1 #ErrorDocument 403 /403.html allow from all AuthUserFile /etc/apache2/.htpasswd AuthGroupFile /dev/null AuthName ByPassword AuthType Basic require user ibiro deny from all allow from 213.222.145.193 allow from 87.229.26.244 allow from 87.229.26.55 satisfy any #allow from 94.248.129.7 #allow from 213.222.145.193