# Apache 2.4 (mod_rewrite), DocumentRoot = this folder. Same routes as router.php.
# Needs "AllowOverride All" (or at least FileInfo AuthConfig Limit Options) for this folder.
# region routes
Options -Indexes
DirectoryIndex index.php

RewriteEngine On
RewriteRule ^rte/gallery$ rte/gallery.php [END]
RewriteRule ^rte/upload$  rte/upload.php  [END]

# The helper library, the dev-server router and the demo login are not endpoints.
RewriteRule ^(rte/files-lib\.php|router\.php|demo-login\.php)$ - [F]
RewriteRule \.(md|example)$ - [F]
# endregion

# /rte-files.js and /richtexteditor/ : copy shared/rte-files.js next to index.php and the
# editor's richtexteditor/ folder into this folder, or use an Alias in the vhost config
# (Alias is not allowed in .htaccess).
#
# uploads/ needs its own .htaccess: copy uploads.htaccess to uploads/.htaccess.
