Moving to a development server
-
I am working on a website that is WordPress based, my first experience with a WordPress installed site (as opposed to a Blog I have on WordPress.com). I am a web developer and online marketer, so I understand much of the technical aspects and have been making good progress. But I have one BIG issue that I cannot seem to grasp and correct. I would greatly appreciate some insight on this, please if possible.
First off, I am hosting a development or “Sandbox” version of the WordPress site on a GoDaddy Hosting Account (the Live website is also on GoDaddy and is currently on WP 3.0, the development or “Sandbox” website is also on GoDaddy Hosting and is currently on WP 3.4.2). I read up on how to move from one server to another and did so it in this manner:
1) Exported MySQL Database from Live site.
2) Imported MySQL Database (from Live site) into a MySQL Database on the Sandbox site.
3) Downloaded (FTP) all files and directories from Live site.
4) Uploaded (FTP) all files and directories (from Live site) onto the Sandbox site.This worked fine, all worked well and the site appeared to be fully duplicated. I need this Sandbox development site so that the changes I enact are not Live and we can tweak as needed before going Live with the changes. HOWEVER, some “static” Pages and the Post page caused me grief.
What is happening is this (on several pages, but I’ll provide a couple of examples as it seems to be a similar problem in each instance):
1) For starters the /Blog/ page would load a 404 page when clicked, but the Home page (static), /About/ page, /Contact/ page all worked fine. So I researched this and gained the understanding on how to set your Posts to have a specific Permalink. Thus to I made a Page with no content, then in Settings-Reading section I set the “Posts page” to the one I created.
Well, I wanted to make it the EXACT same as on the Live site (so that when I transfer everything from the development Sandbox back to the Live site it will be as it was – though with all of the new changes that I have created).
So I edited the “Blog” page that was originally set up (that was now leading to a 404 on the Sandbox site) and renamed it “Blog Original” and I edited the Permalink to also be /blog-original/ and Published this. After doing this I made a new Page and made it’s name “Blog” (as the original one was to begin with) and set it’s Permalink path to /blog/. THIS DID NOT WORK, I STILL GOT THE 404 PAGE.
So, I changed the Permalink path on this new Blog Page to /julias-blogs/ – then I set the “Posts” page to this new page – finally I set the Appearance-Menus to load this page as the “Blog” page (not the original one). And voila IT SEEMED to work.
However, then it dawned on me, this is not the same as the Live site and if someone has this bookmarked the Permalink path has changed (as now there is no /blog/ path as I changed this to /blog-original/ and the path to the new Blog Page is /julias-blog/).
Ugh! What do I do? Why doesn’t the original Blog Page work (giving a 404)? And why can’t I name a new Page “Blog” and set it’s path to /blog/ and have it function as it should (and as it does on the Live site)?
2) As another example, there is a /fitness/ page as well. However, when I click the link for this on the Sandbox site (which in this instance was linking directly to the document ID and not a Permalink – it literally was linked to /?page_id=52 rather than /fitness/) and yet it would also bring up a 404 page.
However, if I changed the Permalink path to /fitness-now/ it works and loads the proper page (with the page_id=52). Yet, if I leave it as it was (and is on the Live site) with the path of /fitness/ it loads a 404 page. Baffling!
Why doesn’t this work as it is on the Live site? Why is this forcing me to change the Permalink?
3) WHAT I HAVE READ that seemed somewhat related:
https://www.ads-software.com/support/topic/parent-category-page-is-404ing
But, after checking the folders (directories) I do NOT have any with these names (no folder with the title “blog” and no folder with the title “fitness”).
I also found this apparently related article:
https://www.ads-software.com/support/topic/ever-feel-like-youre-in-the-wrong-place-404-errorHowever, my .htaccess only includes the bear minimum (per my understanding):
AddHandler x-httpd-php5 .php # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
So this doesn’t appear to be the problem.
Can someone please help me? I am baffled as this seems to relate to the OS (Linux) or Web Server (Apache), but from what I am seeing this is an issue with WordPress.
Please help.
Best regards,
CGC
- The topic ‘Moving to a development server’ is closed to new replies.