# TODO: Improve security.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Options -Indexes
# Add on: /opt/lampp/apache2/conf/httpd.conf
# <Directory "/opt/lampp/htdocs/api">
# AllowOverride All
# </Directory>
|