billappleton/dsp-core/master/web/.htaccess - Htaccess File

billappleton/dsp-core/master/web/.htaccess

# This file is part of the DreamFactory Services Platform(tm) (DSP)
#
# DreamFactory Services Platform(tm) <http://github.com/dreamfactorysoftware/dsp-core>
# Copyright 2012-2013 DreamFactory Software, Inc. <support@dreamfactory.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

IndexIgnore */*
RewriteEngine on
RewriteBase /

#  Force SSL
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^(.+).cloud.dreamfactory.com$ [NC]
RewriteRule  (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

# 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 [L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_FILENAME, REQUEST_URI

Comments

Apache