.HTACCESS
To jest ta część, gdzie Apache robi robotę, a PHP udaje, że to była jego zasługa.
RewriteEngine On
# Nie ruszaj samego panelu i realnych plików/katalogów
RewriteRule ^a\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Cała reszta -> a.php jako "path"
RewriteRule ^(.+)$ a.php?path=$1 [L,QSA]
# --- VHS SHORTENER START ---
RewriteEngine On
RewriteRule ^1/?$ https://drive.google.com/drive/folders/1TjFBWS6eeViNEDoksmPVnRTMVm8X-7MJ?usp=sharing [R=301,L]
# --- VHS SHORTENER END ---
<Files "ftp_profiles.txt">
Require all denied
</Files>
<FilesMatch "^ftp_cache">
Require all denied
</FilesMatch>