2 WP sites – Editing index.php for NEW site affects the other site
-
Hi
I would like to know how to ensure my public site domain link remains valid whilst allowing membership site to also redirect correctly
Existing site: – REDIRECTS TO NEW SITE (This is wrong)
https://hongernaarmeer.nl/hmm – the below is not on the home directory but in hnm)
1. .htacces line reads – RewriteRule . /index.php [L]
2. Index.php reads – /** Loads the WordPress Environment and Template */
require(‘./hnm/wp-blog-header.php’);Example of a URL that is broken because it goes to “launch1” which is defined as the root domain (https://hongernaarmeer.nl)
https://www.hongernaarmeer.nl/hnm/cambridge-dieetRoot Domain URL (New Membership Site) – WORKING URL
https://hongernaarmeer.nl/
1. .htaccess line reads – RewriteRule . /index.php [L]
2. Index.php reads – /** Loads the WordPress Environment and Template */
require(‘./launch1/wp-blog-header.php’);Please advise how to edit the above files correctly so that traffic for both “launch1” (which currently works and “hnm” (which is broken) can reach their respective destinations?
Thanks in advance
Phil
P.S. I followed the https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory exactly but I cannot see how to edit for 2 WP sites
- The topic ‘2 WP sites – Editing index.php for NEW site affects the other site’ is closed to new replies.