setenvif:
- 'Origin "http(s)?://(www\.)?(sirona-cerec-test.azurewebsites.net|sirona-cerec-stage.azurewebsites.net|cerec.com|sirona-cerec-de.local:3000)$" AccessControlAllowOrigin=$0$1'
setenvifnocase:
- - 'Accept-Language ^.*$ language=en-us'
- - 'Accept-Language ^es language=es-es'
+ - 'Accept-Language ^.*$ language=es-es'
+ - 'Accept-Language ^en$ language=en-us'
headers:
- 'add Access-Control-Allow-Origin %%{ich-trickse}{AccessControlAllowOrigin}e env=AccessControlAllowOrigin'
aliases:
- { alias: /error_custom/ , path: /var/www/html/error_custom/ }
error_documents:
- - { error_code: 404 , document: "/en-us/error-pages/404.html" }
- - { error_code: 500 , document: "/en-us/error-pages/500.html" }
+ - { error_code: 404 , document: "/es-es/error-pages/404.html" }
+ - { error_code: 500 , document: "/es-es/error-pages/500.html" }
- { error_code: 502 , document: "/error_custom/error.shtml" }
- { error_code: 503 , document: "/error_custom/error.shtml" }
directories:
options:
- +Includes
- provider: locationmatch
- path: '^/es-es/'
+ path: '^/en-us/'
error_documents:
- - { error_code: 404 , document: "/es-es/error-pages/404.html" }
- - { error_code: 500 , document: "/es-es/error-pages/500.html" }
+ - { error_code: 404 , document: "/en-us/error-pages/404.html" }
+ - { error_code: 500 , document: "/en-us/error-pages/500.html" }
rewrites:
- comment: 'http to https'
rewrite_cond:
setenvif:
- 'Origin "http(s)?://(www\.)?(sirona-cerec-test.azurewebsites.net|sirona-cerec-stage.azurewebsites.net|cerec.com|sirona-cerec-de.local:3000)$" AccessControlAllowOrigin=$0$1'
setenvifnocase:
- - 'Accept-Language ^.*$ language=en-us'
+ - 'Accept-Language ^.*$ language=es-es'
+ - 'Accept-Language ^en language=en-us'
- 'Accept-Language ^it language=it-it'
- - 'Accept-Language ^es language=es-es'
- 'Accept-Language ^fr language=fr-fr'
- 'Accept-Language ^de language=de-de'
headers:
aliases:
- { alias: /error_custom/ , path: /var/www/html/error_custom/ }
error_documents:
- - { error_code: 404 , document: "/en-us/error-pages/404.html" }
- - { error_code: 500 , document: "/en-us/error-pages/500.html" }
+ - { error_code: 404 , document: "/es-es/error-pages/404.html" }
+ - { error_code: 500 , document: "/es-es/error-pages/500.html" }
- { error_code: 502 , document: "/error_custom/error.shtml" }
- { error_code: 503 , document: "/error_custom/error.shtml" }
directories:
- { error_code: 404 , document: "/fr-fr/error-pages/404.html" }
- { error_code: 500 , document: "/fr-fr/error-pages/500.html" }
- provider: locationmatch
- path: '^/es-es/'
+ path: '^/en-us/'
error_documents:
- - { error_code: 404 , document: "/es-es/error-pages/404.html" }
- - { error_code: 500 , document: "/es-es/error-pages/500.html" }
+ - { error_code: 404 , document: "/en-us/error-pages/404.html" }
+ - { error_code: 500 , document: "/es-us/error-pages/500.html" }
- provider: locationmatch
path: '^/it-it/'
error_documents:
setenvif:
- 'Origin "http(s)?://(www\.)?(sirona-cerec-test.azurewebsites.net|sirona-cerec-stage.azurewebsites.net|cerec.com|sirona-cerec-de.local:3000)$" AccessControlAllowOrigin=$0$1'
setenvifnocase:
- - 'Accept-Language ^.*$ language=en-us'
+ - 'Accept-Language ^.*$ language=es-es'
- 'Accept-Language ^it language=it-it'
- - 'Accept-Language ^es language=es-es'
+ - 'Accept-Language ^en language=en-us'
- 'Accept-Language ^fr language=fr-fr'
headers:
- 'add Access-Control-Allow-Origin %%{ich-trickse}{AccessControlAllowOrigin}e env=AccessControlAllowOrigin'
aliases:
- { alias: /error_custom/ , path: /var/www/html/error_custom/ }
error_documents:
- - { error_code: 404 , document: "/en-us/error-pages/404.html" }
- - { error_code: 500 , document: "/en-us/error-pages/500.html" }
+ - { error_code: 404 , document: "/es-es/error-pages/404.html" }
+ - { error_code: 500 , document: "/es-es/error-pages/500.html" }
- { error_code: 502 , document: "/error_custom/error.shtml" }
- { error_code: 503 , document: "/error_custom/error.shtml" }
directories:
- { error_code: 404 , document: "/fr-fr/error-pages/404.html" }
- { error_code: 500 , document: "/fr-fr/error-pages/500.html" }
- provider: locationmatch
- path: '^/es-es/'
+ path: '^/en-us/'
error_documents:
- - { error_code: 404 , document: "/es-es/error-pages/404.html" }
- - { error_code: 500 , document: "/es-es/error-pages/500.html" }
+ - { error_code: 404 , document: "/en-us/error-pages/404.html" }
+ - { error_code: 500 , document: "/en-us/error-pages/500.html" }
- provider: locationmatch
path: '^/it-it/'
error_documents:
setenvif:
- 'Origin "http(s)?://(www\.)?(sirona-cerec-test.azurewebsites.net|sirona-cerec-stage.azurewebsites.net|cerec.com|sirona-cerec-de.local:3000)$" AccessControlAllowOrigin=$0$1'
setenvifnocase:
- - 'Accept-Language ^.*$ language=en-us'
+ - 'Accept-Language ^.*$ language=es-es'
+ - 'Accept-Language ^fr language=fr-fr'
headers:
- 'add Access-Control-Allow-Origin %%{ich-trickse}{AccessControlAllowOrigin}e env=AccessControlAllowOrigin'
aliases:
- { alias: /error_custom/ , path: /var/www/html/error_custom/ }
error_documents:
- - { error_code: 404 , document: "/en-us/error-pages/404.html" }
- - { error_code: 500 , document: "/en-us/error-pages/500.html" }
+ - { error_code: 404 , document: "/es-es/error-pages/404.html" }
+ - { error_code: 500 , document: "/es-es/error-pages/500.html" }
- { error_code: 502 , document: "/error_custom/error.shtml" }
- { error_code: 503 , document: "/error_custom/error.shtml" }
directories:
path: /var/www/html/error_custom/
options:
- +Includes
+ - provider: locationmatch
+ path: '^/fr-fr/'
+ error_documents:
+ - { error_code: 404 , document: "/fr-fr/error-pages/404.html" }
+ - { error_code: 500 , document: "/fr-fr/error-pages/500.html" }
rewrites:
- comment: 'lanugage Rewrite use Env Vars'
rewrite_rule: