• I’m looking for advice on how to best set up a wordpress website in my root folder while the domain name is being pointed to a sub-directory where my old website is now relocated. I took the old website from a different account (subdomain) and created a new hosting account for it. I thought it best to place the website in a sub-directory and point the domain name (pjnphoto.com) to the sub-directory by modifying the htcaccess file to keep it live while I build the new root-level website using wordpress.

    Here’s the problem: In the “new under-contruction root-level wordpress site” any pages or posts I create point to the sub-directory because the address contains pjnphoto.com. How can I design the new root level site and temporarily modify the address so it’s not pointing to the sub-directory? Also will any of these modifications be permanent when I switch the htcaccess file so the domain name pjnphoto.com now points to the root? Note: Under settings>general – I tried to set the wordpress website (URL) to the ip – https://66.147.244.61/~pjnphoto but this didn’t work and I see all the permalinks have the pjnphoto.com in their address.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    If your intent was to keep wordpress in the /blog sub-directory, but make it accessible/serve it from www.example.com. Some reference material:
    Giving WordPress Its Own Directory

    Thread Starter ccarlow

    (@ccarlow)

    No I want wordpress in the root. I am redesigning the old website so it will eventually be served at the root level but currently I have the old website in a subdirectory (not a wordpress site). The problem is the domain name is redirected to the subdirectory from the htcaccess file. As I develop the new wordpress site in the root directory the pages get redirected to the subdirectory. I realized I need to set both wordpress address and site address under general settings to use ip address instead of pjnphoto.com. I assume once I get the root site set up I can remove the redirect in the hctaccess file and edit the wordpress and site address under general settings back to pjnphoto instead of ip and it should go live from the root without any addressing issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to setup wordpress in root directory while domain is pointed to subdirectory’ is closed to new replies.