how to transfer posts to my new sub folder ?

sasa22233

Registered Member
Joined
May 10, 2020
Messages
87
Reaction score
2
i have categories and posts on my main website root .
now i want to clean every post and move all posts to a new sub folder i just made is that possible ?
 
I would say, have the exact same structure in the sub folder. Then have a htaccess rule in your root folder that permanently redirects all the urls (or some of the urls, if needed) to your sub folder; with keeping query strings the same.

Or, did you mean to just add something to the query string, and not having a separate installation?
 
I understand that you are talking about Wordpress
This is simple: go to permalinks section, select the custom URL format at put a %category% /%postname% format
Better explained here for example:
https://www.ostraining.com/blog/wordpress/wordpress-permalinks-multiple-categories/

i already use this URL format in my website
i want make a new subfolder then i want move some categories with their posts to to the new sub folder by a plugin . will this break links ??
im new to this.. if i make a subfolder will i have to install new theme and new database and apply for adsense again for this new subfolder ?
 
I would say, have the exact same structure in the sub folder. Then have a htaccess rule in your root folder that permanently redirects all the urls (or some of the urls, if needed) to your sub folder; with keeping query strings the same.

Or, did you mean to just add something to the query string, and not having a separate installation?
i already use this URL format in my website
i want make a new subfolder then i want move some categories with their posts to to the new sub folder by a plugin . will this break links ??
im new to this.. if i make a subfolder will i have to install new theme and new database and apply for adsense again for this new subfolder ?
 
i want make a new subfolder then i want move some categories with their posts to to the new sub folder by a plugin . will this break links ??

You can do this, but remember to do the 301 afterwards. You can use any redirection plugin to accomplish this.
 
Back
Top