First thanks for supports.
I’m using WordPress for my site. My posts with URL like example:
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.
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 insettings->writing->default post category
)This would then in your slug, result in
article/postname
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
Finally, click “Save Changes”.