Htaccess File

luke-siedle/Ant/master/.htaccess

ENV, REDIRECT_STATUS, REQUEST_URI
# Ant required .htaccess file
# for handling URL rewriting.
# 
# @require mod_setenvif
# @since 0.1.0  

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [L]
RewriteRule (public/.*.xml)$ release/index.php?request=?channel=error [L]
RewriteRule (public/.*)$ release/$1 [L]
RewriteRule (tests) tests/index.php [L]
RewriteRule (test.php) test.php [L]
RewriteRule ^(.*+)$ release/index.php?request=$1&uri=%{REQUEST_URI} [L]

# Directory 
DirectoryIndex index.php

# Custom environmental variables
SetEnvIf Host ^(127.0.0.1|localhost) IS_LOCAL=1
SetEnvIf Host ^(127.0.0.1|localhost) IS_STAGE=1
Exit mobile version