Risoluto/Risoluto-Core/master/public_html/.htaccess - Htaccess File

Risoluto/Risoluto-Core/master/public_html/.htaccess

###############################################################################################
# This file is part of Risoluto( http://www.risoluto.org/ )
# Risoluto is released under New BSD License( http://opensource.org/licenses/bsd-license.php )
# (C) 2008-2015 Risoluto Developers / All Rights Reserved.# If you want to use "STATIC URL".
###############################################################################################
<IfModule mod_rewrite.c>
    # Enable mod_rewrite
    RewriteEngine On

    # Define base url(If you install to sub directory, change here)
    RewriteBase /

    # Do redirect if found slash on the last of url
    RewriteCond %{REQUEST_URI} /$
    RewriteRule ^(.*)/$ $1 [L,R=301]

    # Call Pages::View method if requested
    RewriteCond %{REQUEST_URI} Pages/(.*)$
    RewriteRule Pages/(.*)$ ?seq=Pages_View.$1 [L]

    # Do rewrite if real directories/files are not requested
    RewriteCond %{QUERY_STRING} !^$
    RewriteRule . ?%{QUERY_STRING} [L,R=301]

    RewriteCond %{QUERY_STRING} ^$
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ ?seq=$1 [L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
QUERY_STRING, REQUEST_FILENAME, REQUEST_URI

Comments

Apache