WordPress.org

Ready to get started?Download WordPress

Forums

Building a new WordPress site while the old static HTML site is live (24 posts)

  1. clou4394
    Member
    Posted 2 years ago #

    I am going to be building a WordPress.org site for a client who already has a site live. He has a host already that he likes and wants to keep. The host meets the minimum WP requirements so there is no need to move to a new host.

    My question is, how do I build the new site while the old one is live? Should I ask the host to create a WP account for the client that I can work on and have them just give me the login info? I would like to do this all myself and ask the host to do as little as possible, but I do not know how to go about it.

    I read in another post that you need to build the site in a "subdirectory" but I do not really understand the whole directory/root/index.php thing. I have already built my own WP site, but I guess I am a total noob when it comes to building a new version of a site!

    If someone could please help me with this,and tell me what I need to ask the host to do (preferably as little as possible) I would be sooo grateful!

  2. marinaa
    Member
    Posted 2 years ago #

    What they told you about the subdirectory is correct.

    Usually hosts will have a quick install method for WordPress. Do a search in their docs to get directions - usually it's staight forward. Follow the steps and put WordPress in a subdirectory and all that means is if the root directory of the domain is http://domain/ then a subdirectory would be http://domain/subdirectory. Once you build your new site, then delete all the files that makeup the old site and follow the directions from step 7 on this page.

    If the host doesn't have a quick install, then use FTP or SFTP to connect to the server and create a directory in the root for the WordPress files. If you're on Windows, Core FTP LE will work and for SFTP you can use WinSCP.

  3. clou4394
    Member
    Posted 2 years ago #

    Thank you so much Marinaa. That helps a ton! I am hoping they have a quick install.

    If not, I am using a Mac. I have downloaded FileZila, but I am not really sure what steps I I would take from there. What information would I need from the host to do this?

  4. clou4394
    Member
    Posted 2 years ago #

    One more thing I am confused about. When it says you need to "install WordPress" does that mean that you are installing it on your hosts server or on your own computer? Thanks again in advance!

  5. marinaa
    Member
    Posted 2 years ago #

    You'll need the host, username and password for the FTP. The host is usually domain.com or http://ftp.domain.com.

    "Install WordPress" here means to upload the files to the host's server.

    If you should end up using FTP, once you login, the left side of the window will be your computer (local site) and the right side of the window will be the server where the website lives (remote site). Since this is a static site, look for index.html - it may be in a directory called "public_html" or "www". If you can't find it, ask your host. Once you do find it, within that same directory, create a new directory and call it whatever you'd like and upload the WordPress files there.

    Before uploading the files, don't forget to configure wp-config.php > this page gives a step-by-step. And before doing that, a database and a user set to that database are needed > this page under step 2 describes the process. You can also ask your host how to do this.

  6. clou4394
    Member
    Posted 2 years ago #

    Thank you again Marinaa. You are a HUGE help.

    One more question: When I am building the new site and I am setting up the individual page URLs (say, example.com, example.com/about, example.com/blog etc) will that affect the current live URLs, since they are technically still in the same directory right? In other words, what keeps the new pages from messing up the old pages of the same name?

  7. marinaa
    Member
    Posted 2 years ago #

    since they are technically still in the same directory right?

    They are not in the same directory. That is the reason for creating a subdirectory and placing all the WordPress files in there.

    So right now the site is at example.com. But you will be working in example.com/subdirectory, which will still be live for anyone who knows the name of the subdirectory. So no - there will be no conflict. For another example - lets take an "about" page. The path to the current page would be example.com/about and where you will be working, the path will be example.com/subdirectory/about - so both will be live, just the paths will be different.

    After installing WordPress in the subdirectory, it may be a good idea to block search engines by going to the admin > settings > privacy > select "I would like to block search engines, but allow normal visitors". You can reverse this after the site is complete. As mentioned before, once the site is complete, you would delete all the old files and move index.php and .htaccess from the subdirectory up one level. For directions, follow from step 7 in "Giving WordPress Its Own Directory".

    I think you can also move all the contents of the subdirectory up on level - that way you wouldn't have to make the change to index.php as described in the above link. I just like keeping all the WordPress files in their own folder.

  8. clou4394
    Member
    Posted 2 years ago #

    Ok, I will do that. Thank you so much Marinaa!!

  9. tjsanders
    Member
    Posted 2 years ago #

    Marinaa - I am just wanting to make sure I have this right - I want to move my site from a subdirectory too.

    * Delete old files - means old HTML files?
    * Only steps 7 - 11 in Giving_WordPress_Its_Own_Directory need to be followed? ie no need to adjust the urls on the General settings page?

    Thanks in advance.
    Tina

  10. marinaa
    Member
    Posted 2 years ago #

    Tina -

    It's not clear to me if you are replacing a static site as clou is doing or simply changing directories for an existing WordPress installation.

    * Delete old files - means old HTML files?

    In reference to Clou's situation, by "old files" I mean what ever files that make up the site that will be replaced.

    If WordPress is going to be installed in a subdirectory (example.com/subdiretory) but you want to access the website from the root (example.com), then all the steps in Giving WordPress Its Own Directory need to be followed including the steps for the URLs in the General panel. Sorry about that - I made a mistake by saying to start from step 7.

  11. clou4394
    Member
    Posted 2 years ago #

    @Marinaa So do you mean that you made a mistake and I should do steps 1-6 as well? Or just Tina? Just want to be clear.

    All of this may be over my head. Does anyone know of someone trustworthy who can do this for me at a reasonable price?

    Sorry about all the confusion! Thanks!

  12. marinaa
    Member
    Posted 2 years ago #

    Clou - I did make a mistake by neglecting to include the steps in changing the URLs in the General panel. All steps are needed if you want to access your site from root.

    You can post a job at WP Jobs.

  13. tjsanders
    Member
    Posted 2 years ago #

    Marinaa, thanks for the clarification and all the help.

    Just like Clou, I am replacing a static site with a WP one, have wordpress in its own directory and want to access the new site through the root.

    I will try it today.
    Thanks again.

  14. tjsanders
    Member
    Posted 2 years ago #

    Well the move went smoothly - just a few urls to change (taking out the subdirectory name).

    Now here is my stupid question, how do I set up redirects from my old pages that are showing on google to the new site? I took a look at some of the info on 301 redirect but I am not sure what exactly to do. Any help would be appreciated.

  15. marinaa
    Member
    Posted 2 years ago #

    Tina - I use Redirection.

    I'm glad it went smoothly.

  16. clou4394
    Member
    Posted 2 years ago #

    Hi again Marinaa,

    Is there any way to go live with the new site without deleting all the old files? Can we move the old site to a subdirectory for a while in case we need to go back?

    Thanks!

  17. marinaa
    Member
    Posted 2 years ago #

    Clou - yes - it's better to move the old files to a subdirectory instead of deleting them.

  18. clou4394
    Member
    Posted 2 years ago #

    Great, thank you Marinaa!

  19. avavillegas
    Member
    Posted 2 years ago #

    Hi Marinaa, Im doing the same thing, But instead of deleting the old webpage is there way i can change into a subdirectory instead. And leave the wordpress in a subdirectory as well and just have it pointed from my mainwebpage?

  20. ssantos
    Member
    Posted 2 years ago #

    Hi
    I am kind of doing the same thing, trying to create a WP page while leaving the other site live. I have the domain with godaddy and just paid not too long ago to have it renewed. But have opened an account with ipage as my new webhost and I am trying to develop the new WP site from ipage.
    When I isntall the wordpress on ipage, the instalation completes, but when I click on the link to work on it, it just says page not found. I asked the ipage support and they said that since they dont host the domain, I need to change the name servers on godaddy for it to work. At this point, go daddy is forwarding the domain to the old webhost, and I am wondering if I change the nameservers to ipage, will the live site stop working?

  21. esmi
    Forum Moderator
    Posted 2 years ago #

    @ssantos: Please post your own topic.

  22. briegger
    Member
    Posted 1 year ago #

    @marinaa, you've been so helpful with this post, thank you so much! I need a little more clarification. Another developer developed the website I'm doing and it is a Static Html site. How do I know what files to delete??? I can follow along with all of your instructions above, I just don't want to delete something I shouldn't.

    Thanks for all of your input!

  23. marinaa
    Member
    Posted 1 year ago #

    briegger - the static site should be made up of index.html and the corresponding pages and media. So visit each page on the site with your browser and take note of the URLs - then match those names up with the files on the server. I wouldn't delete the old files though - either move them to another directory or save them on your computer until you have everything finished.

    Hope that makes sense -

  24. briegger
    Member
    Posted 1 year ago #

    Thanks so much Marinaa!! I've backed everything up and I've deleted everything but the stinkin' home page still exists somewhere that I haven't deleted and I can't find it!!

    The website is http://www.medicareinsuranceprofessionals.com. The only page that exists right now is the front page. I've got the entire thing built on another server.

    I've searched in file manager for the file and in firezilla. When I inspect element, it shows http://www.w3.org/1999/xhtml. I searched for that to no avail.

    This project is really kicking my butt!!

    The only thing in the public html folder is .htaccess & prefextxt. I've opened both of the files and they show nothing.

    Thanks again for the advice!

Topic Closed

This topic has been closed to new replies.

About this Topic