Reconfiguring for addon domain leaves blog posts out in the cold.
-
I run mikejkelley.com on a shared hosting site. I have an add-on, nickelcitypixels.com. The add-on resides at mikejkelley.com/ncp and appears to host independently via CNAME DNS machinations. I specified mikejkelley.com/ncp/blog in my wordpress install. Oops. While the WP site functioned (in part because I had redirects cover for a misconfigured CNAME), visitors to nickelcitypixels.com saw mikejkelley.com/ncp/blog as the URL. This was unacceptable.
I substituted every instance of mikejkelley.com/ncp/blog with nickelcitypixels.com/blog and finally figured out that I had to substitute any mention of path= /ncp/blog with /blog too. I then edited wp-config.php to reflect the “new” site and paths.
After two days of troubleshooting I got (almost) everything to work. The site shows up as do the blog posts and images. Login works fine. But the posts themselves do not. Clicking on a post elicits a 404. The (seemingly) correct URL appears in the address field, eg:
https://nickelcitypixels.com/blog/2016/01/02/testinglinks/but the error message mentions the ncp directory still:
Not Found
The requested URL /ncp/blog/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Even new posts fail to work. Index.php exists, so the request must be wrong. It seems I’ve failed to completely edit out /ncp/ somewhere, but where?
- The topic ‘Reconfiguring for addon domain leaves blog posts out in the cold.’ is closed to new replies.