# redirect to version without the www. on the front
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.fedoramagazine\.org [NC]
RewriteRule ^(.*)$ http://fedoramagazine.org%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS_HOST} ^www\.fedoramagazine\.org [NC]
RewriteRule ^(.*)$ https://fedoramagazine.org%{REQUEST_URI} [L,R=301]

#ProxyPass / http://wp-fedoramag.rhcloud.com/
#ProxyPassReverse / http://wp-fedoramag.rhcloud.com/
{% if env == "production" %}
ProxyPass / http://66.226.72.63/
ProxyPassReverse / http://66.226.72.63/
{% else %}
# In staging we point to the staging version of the magazine
ProxyPass / http://104.207.133.220/
ProxyPassReverse / http://104.207.133.220/
{% endif %}
