Internal Server Error due to subdomain redirect
-
Description of the problem I am trying to solve.
Two domains and websites: siteA and siteB
siteA is hosted. Its directory is https://www.sitea.com
A subdirectory was created at https://www.sitea.com/B and holds the contents of siteB.
Cpanel was used to create a subdomain and point siteB to the subdomain located at https://www.sitea.com/B
Everything described above works OK.
Another directory was created: https://www.sitea.com/B2
Wordpress was installed in the B2 directory and an updated version of siteB was created.
I want to https://www.siteB.com to point to the new B2 website.
1. First, I did the following. I Updated the Cpanel to point the siteB domain to the B2 directory.
This works, except for the following problem. As the new B2 website is used, all the URL addresses show up as https://www.siteA.com/B2/….
Instead, I want the addresses to appear as before. That is, https://www.siteB.com/….2. Second, using the Word Press Settings – General function, I updated the Site URL to read – https://www.siteB.com. The address URL was left alone. It reads https://www.siteA.com/B2.
When I visit the website, I get to the home page OK and the URL displays https://www.siteB.com (as before).
But when I try to access any other page, I get a 500 server error.
3. I tried another solution as described in some documentation and that is, updating the wp-config.php file to Define a home and site addresses. This did not work at all.
Based on several documents, the steps described in section 2 above were recommended and should have worked.
I am stuck! What should I do?
- The topic ‘Internal Server Error due to subdomain redirect’ is closed to new replies.