Forums

Moving wordpress file to new directory (25 posts)

  1. chuco61
    Member
    Posted 2 years ago #

    i currently am working on a wordpress site under the directorty

    maclaarte.org/wordpress

    at this point in time for anyone to see the site they have to type maclaarte.org/wordpress

    i would like to have it so that when the user goes to maclaarte.org the wordpress site comes up.

    Can i simply move the files to the main directory or will i have issues with the database. Please help me out!!! thanks!

  2. chuco61
    Member
    Posted 2 years ago #

    ive read through a few articles that make wordpress in its own sub directory but i want the opposite.

  3. chuco61
    Member
    Posted 2 years ago #

    anybody know? please..

  4. sweetangst
    Member
    Posted 2 years ago #

    Follow the instructions..

    Moving from your current directory: maclaarte.org/wordpress
    To your root directory: maclaarte.org/

    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

    Don't forget to read:

    If you want to move WordPress to your root directory, make sure all index.php, .htaccess, and other files that might be copied over are backed up and/or moved, and that the root directory is ready for the new WordPress files.

  5. chuco61
    Member
    Posted 2 years ago #

    How do you prep the root directory? Thanks ALOT!!

  6. sweetangst
    Member
    Posted 2 years ago #

    Are you replacing your existing site with your WordPress site?

  7. chuco61
    Member
    Posted 2 years ago #

    yes i will be replacing the old html site with the new wordpress.
    i attempted to copy the files to another directory and when i attempted to put in the new url it did not work. eek!

  8. sweetangst
    Member
    Posted 2 years ago #

  9. S.K
    Member
    Posted 2 years ago #

    You keep the WordPress files in the same sub-directory (maclaarte.org/wordpress), but you can have the blog address as maclaarte.org. Steps are clearly spelt out in Codex at this URL:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    If you want to move the wordPress files also to the root for any reason, it is a different matter though.

    @sweetangst:

    Some of the steps that are shown in the video are a bit circumlocutory and unnecessary. Much simpler alternatives can be employed.

    S.K

    S.K

  10. figaro
    Member
    Posted 2 years ago #

    @kichu: The steps in that video are exactly correct if you want to move your blog from a subdirectory to root...as you acknowledged when you wrote:

    "If you want to move the wordPress files also to the root for any reason, it is a different matter though.

    If that is what one wants to do, then there are no unnecessary steps in that video.

    If you want to leave your blog files in a subdirectory and have it look like it's in root then the process you pointed out will work.

  11. chuco61
    Member
    Posted 2 years ago #

    Great. it would be much easier for me to leave everything in the sub directory and have the main URL come up as maclaarte.org, however, say if someone clicks on contact us, will this appear as maclaarte.org/contactus or as maclaarte.org/wordpress/contactus

    thanks everyone for the great info!

  12. S.K
    Member
    Posted 2 years ago #

    figaro,

    The video is a cool job describing the detailed procedure for moving the WP files from the sub-directory to root. Kudos for that.

    What I meant was there are some steps which could have been replaced by simpler procedure like editing the siteurl on the phpmyadmin itself and saving it instead of dumping the database, editing the data with a text editor, dropping the database and re-uploading it.

    That was what I meant.

    @chuco61
    If you follow the procedure laid down, it will be "maclaarte.org/contactus".

    HTH

    S.K

  13. figaro
    Member
    Posted 2 years ago #

    @kichu: See the following video and maybe that will show you the problem with just changing those two values.

    http://educhalk.org/blog/?p=68

    EDIT: It has been a while since I did that video...it may not clearly show the problem. Basically, the problem is that you may (and probably will) have the blog url scattered throughout the database and simply changing those two values will not be enough.

  14. S.K
    Member
    Posted 2 years ago #

    This applies a relative positioning of the WP files and siteurl (& home) between the root and subdirectory in the same server set up.

    And I feel changing the 2 values may not cause any problem since any other reference to the old URL in the database might only be to the files, which in any case would not change.

    Thanks and regards

    S.K

  15. sweetangst
    Member
    Posted 2 years ago #

    Seriously? You're going to confuse the original poster. Keep it simple.

    You all give the people asking the questions entirely too much credit. They have a simple problem and want a simple solution. Stop trying to overcomplicate it just because you can.

  16. S.K
    Member
    Posted 2 years ago #

    Thanks for your gracious advice.

    But the OP's question has been amply answered, as you can find out.

    And nothing wrong in my obtaining some extra knowledge from an expert as a spin-off benefit!

    Have a heart!

    S.K

  17. figaro
    Member
    Posted 2 years ago #

    You all give the people asking the questions entirely too much credit.

    @sweetangst: Don't you think that's just a little condescending?

    And I feel changing the 2 values may not cause any problem since any other reference to the old URL in the database might only be to the files, which in any case would not change.

    That is the precisely the problem...yes they would change! If you move wp-content from the subdirectory to root, then the url to the files stored in the uploads directory there would be changed. Also, any references included in the body of posts, pages, text widgets, etc. would also be broken.

    Test it yourself. I assume you have a wp site. Dump your db and do a search/replace on your url...if your db is of any size at all, you will likely see hundreds of replacements...not just two in the options table.

  18. S.K
    Member
    Posted 2 years ago #

    Ok. I assumed they'd be relative URLs.
    I'll test it as advised by you.

    Thanks much.

    S.K

  19. figaro
    Member
    Posted 2 years ago #

    Ok. I assumed they'd be relative URLs

    I think you will find that some are, but quite a few are not.

  20. sweetangst
    Member
    Posted 2 years ago #

    @sweetangst: Don't you think that's just a little condescending?

    Yes, I do. But I've also seen plenty of people get answers that were WAYYYYYYYY above their heads because they asked a simple question and the person reading their question assumed the OP was already familiar with the basics of WordPress use... when in reality, he/she wasn't and only required a simple answer.

    Why do you think real tech support workers always ask you "Is your computer plugged in? Is it turned turned on?" before they actually address your question? You are assumed to be an newbie until proven otherwise because if not, the tech support person might go into some long withdrawn jargon that only techies understand and the person asking the question just gives up because they think the subject matter is way beyond them.

    "Angst" is part of the username for a reason.

  21. figaro
    Member
    Posted 2 years ago #

    "Angst" is part of the username for a reason.

    <sarcasm and humor>Yea, I assumed that...but what's the "sweet" for? </sarcasm and humor> :-)

  22. chuco61
    Member
    Posted 2 years ago #

    Thanks for all the help, ill try this tonight after work. Again much appreciated.

  23. chuco61
    Member
    Posted 2 years ago #

    thanks thanks thanks!! it worked like a charm!!!

  24. chuco61
    Member
    Posted 2 years ago #

    hi guys, i tried doing these steps on a new blog and now im getting an errors aying page not found, i cannot even log into my account. i get this page

    http://maclaarte.org/wp-login.php?redirect_to=http%3A%2F%2Fmaclaarte.org%2Fmain%2Fwp-admin%2Foptions-permalink.php

    any advice?

  25. ampercent
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic