Htaccess File

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

REQUEST_FILENAME, REQUEST_URI
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>
Exit mobile version