First, mysite.com/blogposts
is a sub-directory.
A sub-domain would be blogposts.mysite.com
😀
And, yes, this is possible and quite simple to do:
1) Create the directory (aka folder) blog
in the root of your site and MOVE ALL the WordPress files and folders into this directory. (I think blog
will be better than blogposts
, but use whatever works best for you.)
2) Use your database management tool (commonly PHPMyAdmin) to change your WordPress site address from mysite.com
to mysite.com/blog
. If you don’t have access to such a tool, other options are available. Please see the support article on how to do this:
Changing The Site URL
If you only want to change your site from
mysite.com/ to blog.mysite.com
than its fairly simple, as you are not changing the wordpress installation directory.
1. Create a subdomain – blog.mysite.com
2. Create “A name” record for the subdomain blog.mysite.com
3. WordPress
for Single Site > Settings >> change the website url
for Multisite > Mysite >> Network admin >> Sites >> edit url to blog.mysite.com
However if your changing Server or installation directory or folder than the instructions will be different.
Hope it helps.