DISCOOS/rescue-me/master/src/admin/.htaccess - Htaccess File

DISCOOS/rescue-me/master/src/admin/.htaccess

<IfModule mod_rewrite.c>
    
    RewriteEngine on

    # You may need RewriteBase on some servers (debian). NOTE: / is document root.
    #RewriteBase /admin/

    # Rewrite URLs like "/..." to "index.php?view=..."
    #RewriteRule ^(.*)$ index.php?view=$1 [L,QSA]
    
    # JSON requests (locale etc)
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule ^json/locale.json$ locale/translate.json.php [L,QSA]

    # Admin-page (edit, delete, details: with id)
    RewriteCond %{SCRIPT_FILENAME} !-d  
    RewriteCond %{SCRIPT_FILENAME} !-f  
    RewriteRule ^(.*)/([0-9]+)/?(.*) index.php?view=$1&id=$2 [L,QSA]

    # Admin-page (new, lists: no id)
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule ^(.*[^/])/?(.*)$ index.php?view=$1 [L,QSA]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
SCRIPT_FILENAME

Comments

Apache