How to redirect only post to subfolder in WordPress?

First thanks for supports.

I’m using WordPress for my site. My posts with URL like example:

Read More
http://domain.com/this-is-my-post-url

So, how to redirect all posts in my site to subfolder (only post). New URL of my posts is:

http://domain.com/article/this-is-my-post-url

My temporarily way is redirect per URL:

RedirectPermanent /this-is-my-post-url /article/this-is-my-post-url

But my site have much posts. This way is not good.

Any idea for me? Thank you so much.

Related posts

Leave a Reply

2 comments

  1. There’s no way to do this via .htaccess

    A way you could achieve this is the following:
    In wordpress create a category named article and make it your default (this can be done in settings->writing->default post category)

    This would then in your slug, result in article/postname

  2. This is very easy to accomplish. From the Dashboard, go to Settings –> Permalinks. Under “Common Structure”, choose “Custom” and insert “/article” before “/%postname%/”. The resulting input will be

    /article/%postname%/
    

    Finally, click “Save Changes”.