nicevoice/qoophp-blog/master/public/.htaccess - Htaccess File

nicevoice/qoophp-blog/master/public/.htaccess

AddDefaultCharset UTF-8

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ %{REQUEST_FILENAME} [L]

    RewriteCond %{REQUEST_FILENAME} -d
    RewriteCond %{REQUEST_FILENAME}/index.php -f
    RewriteRule ^ %{REQUEST_FILENAME}/index.php [L]

    RewriteCond %{REQUEST_FILENAME} -d
    RewriteCond %{REQUEST_FILENAME}/index.php !-f
    RewriteRule ^ 404/ [L]

    # for admin view
    RewriteCond %{REQUEST_URI} ^/admin
    RewriteRule admin(/?.*) admin.php?_url=$1 [L]
    #for nomal
    RewriteCond %{REQUEST_URI} !^/admin
    RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache