moving one blog to a subdomain
-
Maya
- Verified Member

- Posts: 85
- Joined: March 31st, 2019, 5:47 pm
moving one blog to a subdomain
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.
thank you for reading and your time.
- bestfreeporn
- Verified Member

- Posts: 2308
- Joined: February 20th, 2018, 6:34 pm
- Referrals: 1
It's a minute edit of wp-config.php
add these 2 lines
add these 2 lines
Code: Select all
define( 'WP_HOME', 'https://www.some-domain/blog/' );
define( 'WP_SITEURL', 'https://www.some-domain/blog/');-
Colmike7
- Banned

- Posts: 1670
- Joined: May 23rd, 2018, 12:21 pm
- Title: (>^-^)b
I think you missed a few steps..bestfreeporn wrote: ↑September 29th, 2020, 7:37 amIt'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/');
-
Maya
- Verified Member

- Posts: 85
- Joined: March 31st, 2019, 5:47 pm
-
Garry2000
- Verified Member

- Posts: 231
- Joined: May 25th, 2019, 6:21 pm
you have to update the database name, user name, password too on the same file. Then it should all be fine.
- TheButcher
- Administrator

- Posts: 17530
- Joined: February 2nd, 2018, 11:48 am
- Title: I like weekends
- Referrals: 1
- Contact:
this and what bestfreeporn posted should work
- bill
- Verified Member

- Posts: 8259
- Joined: February 3rd, 2018, 3:36 pm
you might also need to get a SSL for the sub-domain
some sub-domains need their own SSL
some sub-domains need their own SSL
-
Maya
- Verified Member

- Posts: 85
- Joined: March 31st, 2019, 5:47 pm
- cimage
- Verified Member

- Posts: 1594
- Joined: June 3rd, 2018, 2:36 pm
- Title: living the good life
well done now you'll be able to move your blogs with the experience you gained.
Stop looking for reps if they don't care why waste your time and traffic at their program, fuck that.
~ cimage 2024
~ cimage 2024
- vblogger
- Verified Member

- Posts: 1935
- Joined: February 17th, 2018, 2:48 pm
I suppose I am too late to this party to have helped, glad it's sorted out.
-
Slim
- Verified Member

- Posts: 435
- Joined: September 26th, 2018, 3:02 am
Why change the domain and lose any seo juice, start a new blog
Some people can be Dumb and Dumber
-
urbanlegend
- Verified Member

- Posts: 1471
- Joined: March 23rd, 2018, 10:13 am
- shoopa
- Verified Member

- Posts: 1851
- Joined: February 26th, 2018, 7:32 pm
Ther are times you just need to change the domain name,it has happened to me a few times over the years.