Azure CDN rules engine to rewrite default document and remove .html extension
Edgecast support gave me the following rules:
- add a new rule IF Always
- Feature
- URL Rewrite - source
((?:[^\?]*/)?)($|\?.*)
destination$1index.html$2
- URL Rewrite - source
((?:[^\?]*/)?[^\?/.]+)($|\?.*)
destination$1.html$2
- URL Rewrite - source
- Feature
I created an npm package to deploy a folder and subfolders to azure storage see https://github.com/glued/yokai theres some additional information about configuring the CDN for clean urls here: https://github.com/glued/yokai/blob/master/azure.md
I'm hesitant to post this as an answer. I ran out of time to actually try it out, but I found what appears to be a rules engine manual for verizon's CDN.
GlobalDots Knowledge Base - Edgecast Advanced HTTP Rules
There's a link near the top for a PDF guide.
HTTP Rules Guide PDF
It doesn't look like regular expressions. It's sort of in the spirit of pattern matching, but doesn't look as powerful or generic.
I haven't tried it out yet. It looks like a bit of work to decipher the documentation for use. There aren't many practical examples and the few it has leave me with more questions than answers. I'd love to hear how you make out with it.