moving one blog to a subdomain

Discussion Of Everything Legal Is Good
Maya
Posts: 60
Joined: March 31st, 2019, 5:47 pm

moving one blog to a subdomain

Post by Maya » September 28th, 2020, 11:07 am

hi I'm confused if this can be done, my blog is on the root level of my domain, thing is I want to put a main site on there and have the blog be /some-domain/blog/ how can this be done.

thank you for reading and your time.



User avatar
bestfreeporn
Posts: 1024
Joined: February 20th, 2018, 6:34 pm
Referrals: 1

Post by bestfreeporn » September 29th, 2020, 7:37 am

It's a minute edit of wp-config.php

add these 2 lines

Code: Select all

define( 'WP_HOME', 'https://www.some-domain/blog/' );
define( 'WP_SITEURL', 'https://www.some-domain/blog/');



Colmike7
Posts: 1057
Joined: May 23rd, 2018, 12:21 pm

Post by Colmike7 » September 29th, 2020, 9:56 am

bestfreeporn wrote:
September 29th, 2020, 7:37 am
It's a minute edit of wp-config.php

add these 2 lines

Code: Select all

define( 'WP_HOME', 'https://www.some-domain/blog/' );
define( 'WP_SITEURL', 'https://www.some-domain/blog/');
I think you missed a few steps..



Maya
Posts: 60
Joined: March 31st, 2019, 5:47 pm

Post by Maya » September 29th, 2020, 10:17 am

thank you bestfreeporn
what is wrong colmike7?



Garry2000
Posts: 83
Joined: May 25th, 2019, 6:21 pm
Location: Los Angeles

Post by Garry2000 » October 2nd, 2020, 8:03 am

you have to update the database name, user name, password too on the same file. Then it should all be fine.



User avatar
TheButcher
Site Admin
Posts: 5900
Joined: February 2nd, 2018, 11:48 am
Contact:

Post by TheButcher » October 3rd, 2020, 11:21 am

Garry2000 wrote:
October 2nd, 2020, 8:03 am
you have to update the database name, user name, password too on the same file. Then it should all be fine.
this and what bestfreeporn posted should work



User avatar
bill
Posts: 11198
Joined: February 3rd, 2018, 3:36 pm

Post by bill » October 3rd, 2020, 11:43 am

you might also need to get a SSL for the sub-domain

some sub-domains need their own SSL



Maya
Posts: 60
Joined: March 31st, 2019, 5:47 pm

Post by Maya » October 4th, 2020, 2:18 pm

Thank you for all the help, blog has been moved successfully.



User avatar
cimage
Posts: 559
Joined: June 3rd, 2018, 2:36 pm

Post by cimage » October 7th, 2020, 3:04 pm

Maya wrote:
October 4th, 2020, 2:18 pm
Thank you for all the help, blog has been moved successfully.
well done now you'll be able to move your blogs with the experience you gained.



User avatar
vblogger
Posts: 748
Joined: February 17th, 2018, 2:48 pm

Post by vblogger » October 9th, 2020, 12:11 pm

I suppose I am too late to this party to have helped, glad it's sorted out.



moving one blog to a subdomain

Post Reply