Created
July 25, 2013 18:02
-
-
Save naeluh/6082212 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SetEnv CMS_CLUSTER production | |
SetEnv APP_ROOT /var/www/html/example/htdocs/nature/map | |
php_value include_path "/var/www/html/example/htdocs/nature/map/ZendFramework-1.12.3-minimal/library:." | |
php_flag display_startup_errors off | |
php_flag display_errors off | |
php_flag html_errors off | |
php_flag log_errors on | |
php_value error_log /var/www/html/example/htdocs/nature/map/WEB-INF/log/php_errors.log | |
php_value upload_max_filesize 32M | |
RewriteEngine Off | |
RewriteEngine On | |
RewriteBase /nature/map/ | |
## ADDED BY REQ FROM JUSTIN - 07/23/2013 - FOR MAP PREPENDING www. to URL | |
RewriteCond %{HTTP_HOST} !=www.example.org | |
RewriteRule (.*) http://www.example.org/$1 [R=301,L,NC] | |
## set mobile user flag | |
RewriteCond %{HTTP_USER_AGENT} (iphone|ipad|ipad|android) [NC] | |
RewriteRule .* - [E=MOBILE_USER:1] | |
## unset mobile user flag | |
RewriteCond %{HTTP_USER_AGENT} !(iphone|ipad|ipad|android) [NC] | |
RewriteRule .* - [E=!MOBILE_USER] | |
## desktop files | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond /var/www/html/example/htdocs/nature/map/htdocs/$1 -f [OR] | |
RewriteCond /var/www/html/example/htdocs/nature/map/htdocs/$1 -d | |
RewriteCond %{ENV:MOBILE_USER} ="" | |
RewriteRule (.*) htdocs/$1 [L] | |
## rewrite requests for mobile users | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond /var/www/html/example/htdocs/nature/map/htdocs-mobile/$1 -f [OR] | |
RewriteCond /var/www/html/example/htdocs/nature/map/htdocs-mobile/$1 -d | |
RewriteCond %{ENV:MOBILE_USER} !="" | |
RewriteRule (.*) htdocs-mobile/$1 [L] | |
## pass thru requests for existing files | |
RewriteCond %{REQUEST_FILENAME} -s [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
## send all other requests for cms for resolution | |
RewriteRule ^.*$ index.php [NC,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment