Forums

Direct WP from folder to root (23 posts)

  1. Sculley
    Member
    Posted 11 months ago #

    I created a site in WP and put it in a temp /wordpress folder while I build all the pages (there's a temp page on the root right now). I will need to direct the site to the root when it's ready. Is there a way to do this in the settings w/o having to copy over all the files/folders to the root and then change all the image paths, etc? I think I remember hearing that you could do that. If so, will this cause a problem for SEO / SEs, creating sitemaps, etc. since it will kind of be "forwarded"? Thanks so much in advance!

  2. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    The only thing you'd have to worry about are pages already indexed by search engines. Sounds like the site has not been 'live' so that shouldn't be a problem. The other directory/path manipulation is done on the server before a browser or crawler sees anything so 'forwarding' you are worried about is completely invisible from the outside.

  3. Sculley
    Member
    Posted 11 months ago #

    Okay, cool. Thanks and thanks for the link.

    I'm a little lost. If I already installed WP into the subdirectory (/wordpress), then I don't have to do step "6. Move your WordPress core files to the new location (WordPress address)" since the files are already in there? So, in terms of moving/copying, the only thing I'm doing is copying the index.php and .htaccess files? Not exactly sure what they mean here.

    In #11 - what do they mean by update your permalink structure? I set up this site with "Custom Structure: /%postname%/". Is there anything I need to change?

    Thanks!

  4. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    You are starting at about item #7, yes.

    #11 means that if you are using pretty permalinks-- url structures other than the myblog/?p= one-- then go to wp-admin->Settings->Permalinks and hit the 'Update' button. If WordPress can write the .htaccess file for you, it will. Otherwise you will get a note telling you to paste the following into your .htaccess file, followed boy about ten or so lines of code.

  5. Sculley
    Member
    Posted 11 months ago #

    Okay, cool! Thanks so much!!

  6. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    Backup everything. Mistakes happen. Things go wrong. You want to be able to put things back the way were.

  7. Sculley
    Member
    Posted 11 months ago #

    I use the wordpress automatic update. It's emailed everyday. Will that do? Gosh, this feels kind of scary honestly. Maybe I will just copy the files over to the root?

  8. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    Copying is every fit as dangerous, maybe more. What you are doing is fairly risk free actually. Just export your database just in case.

  9. Sculley
    Member
    Posted 11 months ago #

    Gosh, I thought the backup (from WordPress Database Backup) included the db but maybe not. Export it from the cpanel or is there a place right in the WP admin panel?

  10. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    I don't know what "WordPress Database Backup" contains but it sounds like it does contain the database. Open the file and take a look.

  11. Sculley
    Member
    Posted 11 months ago #

    I opened the file in notepad and it's gobbledy gook. File is:

    mercur11_wrdp1_wp_20110619_693.sql.gz. Isn't gz a type of zip file?

  12. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    .gz is a compressed file similar to a .zip file. 7-Zip will extract it. So will Alzip.

  13. Sculley
    Member
    Posted 11 months ago #

    Cool, downloaded 7 zip and extracted. Now, what program do I use to open it?

  14. Sculley
    Member
    Posted 11 months ago #

    Opened it with WordPad.....wow, this is the back up for the db, pages, comments, plugins, images, everything?

  15. Sculley
    Member
    Posted 11 months ago #

    Notepad I mean. Or is this just the sql db?

  16. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    Its not the DB, exactly, but is a text file representation of the db, and you can re-import it if you need to.. Sound like you have the backups you need.

  17. Sculley
    Member
    Posted 11 months ago #

    Hey apljdi, wondering if you're there. In case something messes up it would be so great to know you're there to help.....:-). Feeling a bit anxious. Thanks!

  18. Sculley
    Member
    Posted 11 months ago #

    Did it!

  19. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    Congratulations! I knew it wasn't too hard for you, but I also know how intimidating it can be.

  20. Sculley
    Member
    Posted 11 months ago #

    Got some help too. The index.php file wouldn't save after updating it. Thanks sooooooooo much for your help!

  21. Sculley
    Member
    Posted 11 months ago #

    Gosh, help! ...site was working fine and now it's saying on "error establishing db connection" when trying to navigate to site and trying to login into WP. It was fine this morning and tried hours later and can't get in. I didn't change anything.

  22. s_ha_dum (was apljdi)
    Member
    Posted 11 months ago #

    That's a different problem. Your DB connection information is in wp-config.php. If you didn't edit that, the problem is with your host. Maybe the server is down.

  23. Sculley
    Member
    Posted 11 months ago #

    You are exactly right. It was the host...problems with server. What are the chances of that on launch date. Phew. Thanks for your reply!!

Reply

You must log in to post.

About this Topic

Tags

No tags yet.