• Hello all, I was trying to revamp my site and am having a bit of an issue. So, originally, I had my main site at https://kyoudai.net/freakingnarnia, which my domain https://freakingnarnia.com was pointing to. Under that domain name I also had two other WP sites (my mobile site at freakingnarnia.com/m and a separate site at freakingnarnia.com/vlog), and they all worked without any issues.

    When I decided to revamp, I switched my freaking narnia domain to point to https://kyoudai.net/fn2 (it was just a simple HTML “site under construction” page, no WordPress). Then I designed the new version of my main site on a fresh WP install in new subfolder at https://kyoudai.net/fn. The two subsites I then cloned into new subfolders at https://kyoudai.net/fn/m and https://kyoudai.net/fn/vlog. It was the same structure I had in the original folder. All three sites worked perfectly at this point.

    So, thinking that I was almost done, I switched the freaking narnia domain again, this time to point to https://kyoudai.net/fn, aka the revamped site. I changed the WP address (URL) in all three sites, and that seemed to work fine. All three sites open okay if you try https://freakingnarnia.com (or /m, or /vlog respectively). I can access all three WP dashboards without a problem, and they seem to work as if nothing was happening. However, if I try to open any subpages on those sites (like for example my services page on my main site, which should be at https://freakingnarnia.com/services), I get an internal 500 error. Only on the subpages, but not on the front page. And it’s the exact same for all three sites, all of which worked just fine before the domain switch, so I very much doubt the internet’s most popular solution, “deactivate all your plugins,” is going to be useful here.

    I tried changing the WP address (URL) via the MySQL database, and even by directly editing the wp-config file. The issue persists. I asked at my webhosts’s support chat and they seemed to think it was an .htaccess issue, but the solution they suggested (eliminating an https:// <-> https:// redirect loop) didn’t fix it, and I can’t gauge from my frantic Google searches which solution out of a myriad might work because I can’t seem to find anyone else who’s had this same problem. Thought I’d ask here just on the off-chance someone might’ve dealt with this before. Any input is appreciated.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • When calling your URL, you currently see PHP errors. These indicate that you have PHP 8.1 or 8.2 enabled. I would recommend to use PHP 8.0. WordPress itself currently runs best with it. It is also possible that plugins you use have problems with the newer PHP version, which would explain the errors.

    Thread Starter lotoazul11

    (@lotoazul11)

    that is good to know about the PHP version; the server does run on PHP 8.1. i’m not sure how to go about changing that on a shared server (or if it’s even possible), but i will look into it. thank you!

    that said, i really, really doubt this is a plugin/PHP problem. as i mentioned, all three sites were set up in the same server (running PHP 8.1), in the same folder, with all the same plugins installed and activated and in use, and they were all working properly before the domain switch. the only thing that changed was the switching of the domain name. i didn’t touch anything else, install any new plugins, nor fiddle with any of the existing ones in the interim. it took literally two minutes– it worked before the switch, and then it didn’t. so if it’s a plugin issue, i’m assuming it’s unrelated to PHP because nothing about the PHP version changed in those two minutes.

    i will keep trying to figure it out, though. i appreciate the input!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘500 error after switching WP site/domain to new folder’ is closed to new replies.