Options -Indexes RewriteEngine On # Allow only bot IP RewriteCond %{REMOTE_ADDR} !^90\.188\.48\.201$ RewriteRule ^ - [F,L] # Nice URLs: /rss/gremtelegram -> rss.php?channel=gremtelegram RewriteRule ^rss/([a-zA-Z0-9_]+)$ rss.php?channel=$1 [L,QSA] # Block direct access to cache directory RewriteRule ^cache/ - [F,L] # Cache images for 7 days Header set Cache-Control "public, max-age=604800, immutable"