perminder-klair/cms-core/master/.htaccess - Htaccess File

perminder-klair/cms-core/master/.htaccess

#Options -Indexes

<ifModule mod_rewrite.c>

    RewriteEngine on
    
    RewriteBase /

    # if a directory or a file exists, use it directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # otherwise forward it to index.php
    RewriteRule ^(.*)$ index.php

    # uncomment to redirect mywebsite.com to www.mywebsite.com
    #RewriteCond %{HTTP_HOST} !^(www.|$) [NC]
    #RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

</ifModule>

#php_value post_max_size 30M
#php_value upload_max_filesize 30M

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_URI

Comments

Apache