donh/Intelllex/master/html/.htaccess - Htaccess File

donh/Intelllex/master/html/.htaccess

<IfModule mod_rewrite.c>
RewriteEngine On

Alias /api/ "/var/www/php/public/"
<Directory "/var/www/php/public/">
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Allow from all
  Order allow,deny
  RewriteRule ^api/(.*)$ /index.php?_url=$1
</Directory>

#RewriteRule  ^/js/(.*).js$ assets/js/$1
#RewriteRule  ^/css/(.*).css$ assets/css/$1

#RewriteCond   %{HTTP_HOST}  .intelllex.com$
#RewriteRule  ^/css/(.*)$ assets/css/$1
#RewriteRule  ^/js/(.*)$ assets/js/$1

# RewriteCond %{HTTP_HOST} ^intelllex.com
# RewriteCond %{HTTP_HOST} ^www.intelllex.com
# RewriteCond %{REQUEST_URI} !^user.php$
# RewriteCond %{REQUEST_URI} !^admin.php$
# RewriteCond %{REQUEST_URI} !^signup.php$
# RewriteCond %{REQUEST_URI} .php$
#RewriteRule (.*).php$ HTTP://intelllex.com/$1/ [R]
# RewriteRule (.*).php$ HTTP://www.intelllex.com/$1/ [R]

# BEGIN WordPress
RewriteBase /

# Phalcon API
RewriteRule ^api/(.*)$ /index.php?_url=$1

RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_URI

Comments

Apache