Files
2025-05-13 11:19:39 -06:00

21 lines
532 B
ApacheConf

# Remote access
Require all granted
RewriteEngine On
# IMPORTANT: RewriteBase must match the folder path
RewriteBase /articles/
# Internally rewrite /articles/foo to /articles/index.php/foo
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
# Optional: Handle root access to /articles/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^$ index.php [L,QSA]
# Return 404 for config.ini requests
RewriteRule ^config\.ini$ - [R=404,L]