File: /home/u176630765/domains/ringroadhonda.com/public_html/wp-content/themes/bbpress/.htaccess
# Matikan Multiviews agar URL tetap sesuai
Options -MultiViews
# Pastikan index.php bisa diakses sebagai halaman utama
DirectoryIndex index.php index.html index.htm
# Izinkan akses ke semua file PHP
<FilesMatch "\.php$">
Require all granted
</FilesMatch>
# Pastikan PrestaShop bisa menangani semua request dengan index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Redirect ke HTTPS jika perlu (opsional)
# RewriteCond %{HTTPS} !=on
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Pastikan semua request ke PrestaShop diproses dengan index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# Menghindari error 403 (Forbidden)
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.htm
</IfModule>
# Izinkan PHP berjalan dengan benar
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
# Tambahkan perizinan untuk cache & performa
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
</IfModule>
# Proteksi tambahan agar tidak bisa akses folder sensitif
<IfModule mod_rewrite.c>
RewriteRule ^(config|docs|install|translations|README.md) - [F,L]
</IfModule>