URL problem with blog

Hey there!

I installed Kirby and I’m really in love!

In my case, I need for my static website only the blog. It was very easy to convert my design. :slight_smile:

So, I want to display my address like: http://website.com/blog/

I also changed my config.php and inserted:
c::set('home', 'blog');

If you open now the main-kirby site (in my case: http://website.com/blog/), everything works fine.


If I click on an article, for example the article “Content in Kirby”, I get following address in my browser:

That’s not really nice. :disappointed_relieved:

What can I do, that the URL in my browser is:

Maybe there is a way with .htaccess … but I’m very unsure.

Hey @designerliebe, welcome to the Kirby forum.

From Kirby’s perspective, the result is completely logical. However, to solve your problem, you could try to omit the blog folder from the URL using routes: https://getkirby.com/docs/developer-guide/advanced/routing#omitting-the-blog-folder-in-urls.

You would have to adapt the example in the docs to take care of the fact that there is already a “blog” part in the URL. If you get stuck, don’t hesitate to ask.

1 Like