Skip to content

Commit

Permalink
Merge pull request #1955 from HighwayofLife/issues/1954
Browse files Browse the repository at this point in the history
Fixes #1954: Auto PYRO_ENV detection in .htaccess
  • Loading branch information
adamfairholm committed Oct 15, 2012
2 parents c492b16 + 16b58a7 commit 15d2e10
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .htaccess
Expand Up @@ -10,6 +10,16 @@
Options -MultiViews
RewriteEngine on

# Automatically determine and set the PYRO_ENV variable
#RewriteCond %{HTTP_HOST} ^local.domain.com$
#RewriteRule (.*) $1 [E=PYRO_ENV:development]

#RewriteCond %{HTTP_HOST} ^stage.domain.com$
#RewriteRule (.*) $1 [E=PYRO_ENV:staging]

#RewriteCond %{HTTP_HOST} ^domain.com$
#RewriteRule (.*) $1 [E=PYRO_ENV:production]

# NOTICE: If you get a 404 play with combinations of the following commented out lines
#AllowOverride All
#RewriteBase /wherever/pyro/is
Expand Down Expand Up @@ -43,4 +53,4 @@
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

</IfModule>
</IfModule>

0 comments on commit 15d2e10

Please sign in to comment.