Documentation

Help & Knowledgebase

Aliases

Aliases are a very easy way to hide some part of your URLs : Aliases can be useful if all your images come from the same image repository (for example: static.mycompany.com/bucket/img) and that you do not wish this repository to be publicly shown in URLs. With aliases, you can easily "mount" _src0_ to static.mycompany.com/bucket/img.

Step 1 : Setup aliases in your admin console

By default, you have 10 aliases but you can add much more with APIs if you need, just contact us. So for this example, let's configure a first alias : _src0_ to http://sample.li. In the admin console, under Token > Settings > Aliases, you can add a comment in the third column.

Step 2 : It's working!

Before:
https://demo.cloudimg.io/width/500/none/http://sample.li/boat.jpg

Now, you can simply call:
https://demo.cloudimg.io/width/500/none/_src0_/boat.jpg

Notes

You can add several aliases and use several aliases in a single URL call.