Moving a lightsail instance from subdomain to subfolder

Viewed 416

We have www.something.com domain registered and DNS is managed by AWS. The main domain is a Django App hosted on EC2.

coolthing.something.com is a WordPress application (Lightsail instance) What we want to do is to move our Wordpress from the subdomain to a subfolder.

Meaning coolthing.something.com -> www.something.com/coolthing

Do you guys know any shortcuts other than implementing reverse proxy using httpd config to assign Lightsail instance's IP address to www.something.com/coolthing ?

We do not want to touch our main instance also prefer not to use Cloudflare(unless there is no other way)

Thanks in advance for your tips.

Will appreciate having your comments, if you have done such a thing previously.

1 Answers

There should be no problem moving WordPress install to subfolder you will just need to update "site url" and "home url" in wp_options table, please screenshots below:

Site URL

[Home Url[2]

Related