xswolf/baihey/master/.htaccess - Htaccess File

xswolf/baihey/master/.htaccess

# prevent directory listings
Options -Indexes
# follow symbolic links
Options FollowSymlinks
RewriteEngine on

RewriteCond %{REQUEST_URI} ^/admin/$
RewriteRule ^(admin)/$ /$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/admin
RewriteRule ^admin(/.+)?$ /backend/web/$1 [L,PT]

RewriteCond %{REQUEST_URI} ^/backend/$
RewriteRule ^(backend)/$ /$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/backend
RewriteRule ^backend(/.+)?$ /backend/web/$1 [L,PT]

RewriteCond %{REQUEST_URI} ^/wap/$
RewriteRule ^(wap)/$ /$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/wap
RewriteRule ^wap(/.+)?$ /wechat/web/ [L,PT]

RewriteCond %{REQUEST_URI} ^/wap/$
RewriteRule ^(images)/$ /$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/wap
RewriteRule ^images(/.+)?$ /images$1 [L,PT]

RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/$ /$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^
RewriteRule ^(/.+)?$ /frontend/views/site/index.html [L,PT]

#RewriteCond %{REQUEST_URI} ^.*$
#RewriteRule ^(.*)$ /frontend/web/$1

#/usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI

Comments

Apache