You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
532 B
20 lines
532 B
# 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]
|
|
|