- RewriteCond %{REQUEST_URI} !^/login(.html)?$
- RewriteCond %{REQUEST_URI} !^/user/(new|create-account.html)$
- RewriteCond %{REQUEST_URI} !^/user/terms$
- RewriteCond %{REQUEST_URI} !^/user/save$
- RewriteCond %{REQUEST_URI} !^/user/go_public$
- RewriteCond %{REQUEST_URI} !^/user/([^/]+)/account$
- RewriteCond %{REQUEST_URI} !^/user/reset-password$
- RewriteCond %{REQUEST_URI} !^/preview/
- RewriteCond %{REQUEST_URI} !^/assets/
- RewriteCond %{REQUEST_URI} !^/javascripts/
- RewriteCond %{REQUEST_URI} !^/images/
- RewriteCond %{REQUEST_URI} !^/stylesheets/
- RewriteCond %{REQUEST_URI} !^/openlayers/
- RewriteRule ^(.*)$ http://www.openstreetmap.org$1 [L,NE,R=permanent]
+ RewriteCond %{HTTP_HOST} =api.openstreetmap.org
+ RewriteCond %{REQUEST_URI} !^/api/
+ RewriteRule ^(.*)$ https://www.openstreetmap.org$1 [L,NE,R=permanent]