Make base url

Not complete yet, still needs:

- [ ] Review
- [ ] Testing