How can I set WordPress with files in DoCroot, but with an apparent folder in URL?

How can I set WordPress with files in DoCroot, but with an apparent folder in URL?

1 minute, 12 seconds Read


The problem

I have a clients’ site Example.com that has Historically seen WordPress served https://www.example.com/web/ and a non-WP forum on https://www.example.com/forum/

We split these on two separate hosting packages for performance reasons. I moved the forum to https://forum.example.com/ And diverted the old URLs.

The client prefers to maintain the WP -URL structure of https://www.example.com/web/ Instead of leading to ordinary https://www.example.com/ Our WordPress -optimized hosting requires that WP files are in the doctor.

So I would like to be WordPress files in root, but that the site seems to be https://www.example.com/web/ Including the paths to uploads.

My thoughts about a solution

There is a lot of documentation to do this “the other way around” with WP files in a folder, but the site appears in Root.

I think I have to change the site -Eurl https://www.example.com/ and keep the home -Url if https://www.example.com/web/

What I am uncertain about are existing and new uploads. Do I move the Uploads folder to a/web/wp content/directory to keep existing URLs happy? Or is there a smart HTACCTS -Herging (not surrounding, the customer is pretty firm on the apparent structure) that I can add so that existing and new uploads work the way I would like?

Thank you.

#set #WordPress #files #DoCroot #apparent #folder #URL

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *