This is a fairly inclusive rule that can be applied to other routes than ‘site/something’. In fact, it seems that the routes for blog module get caught by this rule.
Would you please show us all the url rules including those for blog?
As you can see, I had just one rule before which is why I did not post everything. I am not an expert in this so I am not sure if my solution is the best or if there are better one with no negative effect later. I will welcome any contribution.
As you have noticed, the appearance order of the rules is very important.
I wonder if it’s OK or not, since I’m not familiar with akiraz2’s blog. But it looks strange to me, because <alias> parameter in the route doesn’t have the counterpart in the url pattern.
Hi @softark. I just discover that mysite.com/blog is not working. What works with the rule is mysite.com/blog/. Notice the url that works has a slash at the end.
I also realize that the url is missing the category alias. For example, if an article is published in “news” category, the url should be mysite.com/blog/news/my-article-slug. For now it works as mysite.com/blog/my-article-slug
I think these issues show the rule is wrong. Any idea how to resolve this?