delta-development/ - Htaccess File


# Perform a Rewrite if the requested URI does not match an
# existing file or directory name if the module is turned on.
# any requests to api/v1/ that is not an existing file or directory should
# instead be sent to api/v1/index.php. The (.*) marks a named capture,
# which is sent along to the MyAPI.php script as well in the request variable
# through the use of the $1 delimiter. At the end of that line are
# some flags that configure how the rewrite is performed.
# Firstly, [QSA] means that the named capture will be appended to the
# newly created URI. Second [NC] means that our URIs are not case sensitive.
# Finally, the [L] flag indicates that mod_rewrite should not process any
# additional rules if this rule matches.
# If you want to change the API version, change the URL in Line 19!
# --
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule (.*)$ index.php?request=$1 [QSA,NC,L]

On Github License


Download PDF of Htaccess file