Viewing 10 replies - 1 through 10 (of 10 total)
  • You can accomplish this from your Permalinks Settings page. Use a custom structure for posts like /articles/%postname%/, and articles as the category base.

    Thread Starter zurih

    (@zurih)

    I tried it, it does work on categories, but I get error 404 when I go into a post.

    This post might help. Also, if you have an established blog with a lot of links from other sites pointing to your posts, it might not be worth the trouble to change the links, because you would also want to add redirects from the old URLs to the new ones.

    Thread Starter zurih

    (@zurih)

    It’s a new website so I don’t need to redirect old slugs.

    Nothing written in there helped me, I still get error 404…

    Can you post a link to your site?

    Do you still get errors if you change the permalink settings to what they were previously?

    Thread Starter zurih

    (@zurih)

    Can’t, it’s under development and in a language you’ll probably won’t understand ??

    If I change the permalink to what it was before, %postname%, everything is fine…

    Interesting that %postname% and the category links work, but the others don’t. Perhaps someone who knows the .htaccess file a bit better than I do would be able to help out.

    Thread Starter zurih

    (@zurih)

    What doesn’t work is that when I configure the postname permalink like this:

    /articles/%category%/%postname%/ – it gives me 404 when I got to a post.

    But when I configure it as /%category%/%postname%/ – it works fine.

    I see. Perhaps I gave bad advice. It seems you can only use structure tags in the permalinks. The example I was thinking of when answering set up just one tag on the entire site called “news” and used /%tag%/%postname%/ so that every URL was like: example.com/news/post-name

    Thread Starter zurih

    (@zurih)

    That’s a very interesting idea ??

    I just defined the post permalink like this:
    /%tag%/%category%/%postname%/

    All of my posts tag is just ‘articles’.

    But the %tag% isn’t translated. I mean, I actually see “%tag%” in the URL of a post, like this:
    https://domain.com/%tag%/category/post-name/

    Any idea?
    (thanks for helping me by the way, much appreciated)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to make all posts be "under" /articles/"’ is closed to new replies.