TruongThanh/yii-application/master/.htaccess - Htaccess File

TruongThanh/yii-application/master/.htaccess

# Mod_Autindex
<IfModule mod_autoindex.c>
  # Disable Indexs
  Options -Indexes
</IfModule>

# Mod_Rewrite
<IfModule mod_rewrite.c>
  # Enable symlinks
  Options +FollowSymlinks
  # Enable mod_rewrite
  RewriteEngine On

  # Backend redirect
  RewriteCond %{REQUEST_URI} ^/backend
  RewriteRule ^backend/(.*)$ backend/web/$1 [L]

  # Statics redirect
  RewriteCond %{REQUEST_URI} ^/statics
  RewriteRule ^static/(.*)$ statics/web/$1 [L]

  # Frontend redirect
  RewriteCond %{REQUEST_URI} ^(.*)$
  RewriteRule ^(.*)$ frontend/web/$1
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI, static

Comments

Apache