How to run 2 subdirectory installations?
-
I currently have a WP site running from a subdirectory of my root domain:
clientsite.com/cms/
Everything works fine, using the “give WordPress its own directory” instructions, and all pages in the site site correctly resolve to the root domain, without requiring /cms/ in the URL construct.
To develop a new website for the client, I’ve cloned the existing site into another subdirectory installation like this:
clientsite.com/cms2/
I can access the WP admin backend of the new subdirecotry installation here:
clientsite.com/cms2/wp-admin/
But that is the ONLY URL construct which is honored into the /cms2/ subdirectory installation.
When I try to go to ANY OTHER page of the website, I receive a 404 missing page error, or I’m sent to the corresponding page of the original website.
so if I enter this: clientsite.com/
- cms2
/pageid
I’m taken here: clientsite.com/pageid
I understand this is because of the change I made to the index.php file in my root directory, with this declaration:
/** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/cms/wp-blog-header.php' );
However…
I’ve worked this way for years in WP, and don’t remember this being an issue before. If I wanted to get to a subdirectory page I just included the correct subdirectory in the URL and the page resolved, whether in the backend admin or the front end website.
However, I haven’t redesigned a website like this within the past year or so, and I don’t recall ever doing it with a GoDaddy hosted site. So maybe something changed in WordPress, or perhaps there’s something going on w/ GoDaddy hosting specifically?
The client doesn’t want to migrate to GD’s Dedicated WordPress hosting, which would provide the ability to setup a staging website.
I appreciate any advice…
- This topic was modified 6 years, 5 months ago by .
- This topic was modified 6 years, 5 months ago by .
- This topic was modified 6 years, 5 months ago by .
- This topic was modified 6 years, 5 months ago by .
- This topic was modified 6 years, 5 months ago by .
- This topic was modified 6 years, 5 months ago by .
- The topic ‘How to run 2 subdirectory installations?’ is closed to new replies.