Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing htaccess files (defined in virtualhost)

  • Loading branch information...
commit a0bfe043df35b7ac4a6ee9ba30b66da3a5f90a9f 1 parent c1b2028
@Zeelot Zeelot authored
View
63 httpdocs/.htaccess
@@ -1,63 +0,0 @@
-# Turn on URL rewriting
-RewriteEngine On
-
-# Set the project name to use through the rest of this file
-RewriteRule .* - [E=PROJECTNAME:projecttemplate]
-
-# Force to always use the domain without the 'www' prefix (non-ssl)
-RewriteCond %{ENV:PROJECTNAME},%{HTTP_HOST} ^([^,]+),www\.\1
-RewriteRule ^(.*)$ http://%{ENV:PROJECTNAME}/$1 [R=301,L]
-
-# Set Development environment based on domain
-RewriteCond %{HTTP_HOST} ^dev.vm$
-RewriteCond %{ENV:PROJECTNAME},%{REQUEST_URI} ^([^,]+),/\1
-RewriteRule .* - [E=KOHANA_ENV:development]
-
-# Set QA environment based on domain
-RewriteCond %{HTTP_HOST} ^qa.synsit.es$
-RewriteCond %{ENV:PROJECTNAME},%{REQUEST_URI} ^([^,]+),/\1
-RewriteRule .* - [E=KOHANA_ENV:qa]
-
-# Set Staging environment based on domain
-RewriteCond %{HTTP_HOST} ^demo.synsit.es$
-RewriteCond %{ENV:PROJECTNAME},%{REQUEST_URI} ^([^,]+),/\1
-RewriteRule .* - [E=KOHANA_ENV:staging]
-
-# Set Beta environment based on domain
-RewriteCond %{ENV:PROJECTNAME},%{HTTP_HOST} ^([^,]+),beta\.\1
-RewriteRule .* - [E=KOHANA_ENV:beta]
-
-# Set Production environment based on domain
-RewriteCond %{ENV:PROJECTNAME},%{HTTP_HOST} ^([^,]+),\1
-RewriteRule .* - [E=KOHANA_ENV:production]
-
-# Installation directory
-RewriteCond %{ENV:KOHANA_ENV} !development
-RewriteCond %{ENV:KOHANA_ENV} !qa
-RewriteCond %{ENV:KOHANA_ENV} !staging
-RewriteRule .* - [E=REWRITEBASE:/]
-
-# Development Installation directory
-RewriteCond %{ENV:KOHANA_ENV} development
-RewriteRule .* - [E=REWRITEBASE:/%{ENV:PROJECTNAME}/]
-
-# QA Installation directory
-RewriteCond %{ENV:KOHANA_ENV} qa
-RewriteRule .* - [E=REWRITEBASE:/%{ENV:PROJECTNAME}/]
-
-# Staging Installation directory
-RewriteCond %{ENV:KOHANA_ENV} staging
-RewriteRule .* - [E=REWRITEBASE:/%{ENV:PROJECTNAME}/]
-
-# Protect hidden files from being viewed
-<Files .*>
- Order Deny,Allow
- Deny From All
-</Files>
-
-# Allow any files or directories that exist to be displayed directly
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-
-# Rewrite all other URLs to index.php/URL
-RewriteRule .* %{ENV:REWRITEBASE}index.php/$0 [PT]
View
88 httpdocs/advanced.ssl.htaccess
@@ -1,88 +0,0 @@
-# Turn on URL rewriting
-RewriteEngine On
-
-# Set the project name to use through the rest of this file
-RewriteRule .* - [E=PROJECTNAME:example.com]
-
-# Force to always use the HTTPS domain without the 'www' prefix (ssl)
-RewriteCond %{ENV:PROJECTNAME},%{HTTP_HOST} ^([^,]+),www\.\1
-RewriteRule ^(.*)$ https://%{ENV:PROJECTNAME}/$1 [R=301,L]
-
-# Set Development environment based on domain
-RewriteCond %{HTTP_HOST} ^dev.vm$
-RewriteCond %{ENV:PROJECTNAME},%{REQUEST_URI} ^([^,]+),/\1
-RewriteRule .* - [E=KOHANA_ENV:development]
-
-# Set QA environment based on domain
-RewriteCond %{HTTP_HOST} ^qa.synsit.es$
-RewriteCond %{ENV:PROJECTNAME},%{REQUEST_URI} ^([^,]+),/\1
-RewriteRule .* - [E=KOHANA_ENV:qa]
-
-# Set Staging environment based on domain
-RewriteCond %{HTTP_HOST} ^demo.synsit.es$
-RewriteCond %{ENV:PROJECTNAME},%{REQUEST_URI} ^([^,]+),/\1
-RewriteRule .* - [E=KOHANA_ENV:staging]
-
-# Set Beta environment based on domain
-RewriteCond %{ENV:PROJECTNAME},%{HTTP_HOST} ^([^,]+),beta\.\1
-RewriteRule .* - [E=KOHANA_ENV:beta]
-
-# Set Production environment based on domain
-RewriteCond %{ENV:PROJECTNAME},%{HTTP_HOST} ^([^,]+),\1
-RewriteRule .* - [E=KOHANA_ENV:production]
-
-# Installation directory
-RewriteCond %{ENV:KOHANA_ENV} !development
-RewriteCond %{ENV:KOHANA_ENV} !qa
-RewriteCond %{ENV:KOHANA_ENV} !staging
-RewriteRule .* - [E=REWRITEBASE:/]
-
-# Development Installation directory
-RewriteCond %{ENV:KOHANA_ENV} development
-RewriteRule .* - [E=REWRITEBASE:/%{ENV:PROJECTNAME}/]
-
-# QA Installation directory
-RewriteCond %{ENV:KOHANA_ENV} qa
-RewriteRule .* - [E=REWRITEBASE:/%{ENV:PROJECTNAME}/]
-
-# Staging Installation directory
-RewriteCond %{ENV:KOHANA_ENV} staging
-RewriteRule .* - [E=REWRITEBASE:/%{ENV:PROJECTNAME}/]
-
-# Force to always use https for Production environment
-RewriteCond %{ENV:KOHANA_ENV} production
-RewriteCond %{HTTPS} !=on
-RewriteRule ^(.*)$ https://%{HTTP_HOST}%{ENV:REWRITEBASE}$1 [R=301,L]
-
-# Force to always use https for Beta environment
-RewriteCond %{ENV:KOHANA_ENV} beta
-RewriteCond %{HTTPS} !=on
-RewriteRule ^(.*)$ https://%{HTTP_HOST}%{ENV:REWRITEBASE}$1 [R=301,L]
-
-# Force to always use https for Development environment
-RewriteCond %{ENV:KOHANA_ENV} development
-RewriteCond %{HTTPS} !=on
-RewriteRule ^(.*)$ https://%{HTTP_HOST}%{ENV:REWRITEBASE}$1 [R=301,L]
-
-# Force to always use https for QA environment
-RewriteCond %{ENV:KOHANA_ENV} qa
-RewriteCond %{HTTPS} !=on
-RewriteRule ^(.*)$ https://%{HTTP_HOST}%{ENV:REWRITEBASE}$1 [R=301,L]
-
-# Force to always use https for Staging environment
-RewriteCond %{ENV:KOHANA_ENV} staging
-RewriteCond %{HTTPS} !=on
-RewriteRule ^(.*)$ https://%{HTTP_HOST}%{ENV:REWRITEBASE}$1 [R=301,L]
-
-# Protect hidden files from being viewed
-<Files .*>
- Order Deny,Allow
- Deny From All
-</Files>
-
-# Allow any files or directories that exist to be displayed directly
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-
-# Rewrite all other URLs to index.php/URL
-RewriteRule .* %{ENV:REWRITEBASE}index.php/$0 [PT]
View
22 httpdocs/simple.htaccess
@@ -1,22 +0,0 @@
-# Turn on URL rewriting
-RewriteEngine On
-
-# Installation directory
-RewriteBase /
-
-# Protect hidden files from being viewed
-<Files .*>
- Order Deny,Allow
- Deny From All
-</Files>
-
-# Protect application and system files from being viewed
-# We do this by keeping these directories out of the web root so this rule is not needed
-# RewriteRule ^(?:application|modules|system)\b.* index.php/$0 - [F,L]
-
-# Allow any files or directories that exist to be displayed directly
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-
-# Rewrite all other URLs to index.php/URL
-RewriteRule .* index.php/$0 [PT]
Please sign in to comment.
Something went wrong with that request. Please try again.