I want to write an application that will live under some path, e.g. /blog
So I have two ways to write my urls:
- Each route should contain
/blog
- Add a prefix to url generator that will automatically add the prefix to all further urls
If I choose the first option that I need to rewrite all my urls when I want to move from /blog to /.
There are more problems than I described above: proxying, making extensions and etc.
I want to write an application that will live under some path, e.g.
/blogSo I have two ways to write my urls:
/blogIf I choose the first option that I need to rewrite all my urls when I want to move from
/blogto/.There are more problems than I described above: proxying, making extensions and etc.