view www/.htaccess @ 0:b51518614818 default tip

New Files
author Pluto <meokcin@gmail.com>
date Tue, 03 Sep 2024 15:57:25 +0800
parents
children
line wrap: on
line source

Options -Indexes

<ifModule mod_rewrite.c>
    # Force HTTPS
    RewriteEngine On

    # Activate a virutal file system and send every request of a non existing file to index.php?apiReq=(...)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?path=$1 [L,QSA]
</ifModule>