WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Question about Giving WordPress its own subdirectory (16 posts)

  1. crepusculae
    Member
    Posted 2 years ago #

    Hello!

    I had a quick question about the instructions here ( http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install ). I have a website that is currently sitting in a /wordpress subdirectory, but I'd like to have the main page (at least) be at the plain .com address.

    However, there is already a site being hosted at the .com address -- the one that the new /wordpress one is intended to replace. If I follow the instructions above and leave the original content in the root directory, will it screw everything up? Should I delete everything already in the root directory before following this process? I just want to make sure this works properly when I set it up, as I've already had issues with trying to do this once. I would also prefer to not delete the old website until I'm sure the new one is functioning.

    Thanks for any help you can give me!

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    You won't be able to run both sites from within root (.com directory)

    The indexes will conflict

  3. crepusculae
    Member
    Posted 2 years ago #

    Okay, thanks!

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    How complex is your other site? You could just archive it or move it while configuring WP, and be able to reverse the act quickly if need be

  5. crepusculae
    Member
    Posted 2 years ago #

    defye.com is the other site, defye.com/wordpress is the new one. I don't know if it's extremely complicated, though. (I'm sorry, I'm kind of learning this coding thing as I go.) Are you suggesting just moving it to a different subfolder until I've changed it?

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Well yeah, if the current site was a simple html site (Like 1 index.html file), you could move it to another folder, or whatev, then configure WP. If something goes wrong with WP, quickly move WPs index.php out, and the old site back in.

    It shouldn't be a problem though really. Once you pull the old site, the WP configuration shouldn't take more than 5 minutes. Just make sure you understand the instructions before proceeding

  7. crepusculae
    Member
    Posted 2 years ago #

    Overall I do; I just checked for an .htaccess file and I can't find one, though, despite enabling view of hidden files/folders. If I'm understanding the further instructions properly, I can just create one and upload it through FTP, correct? Or is there something else I need to do?

    (Thank you for all your help so far, by the way!)

  8. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Have you ever enabled fancy permalinks?

    If not, you won't have an .htaccess file

    (If your settings in settings->permalinks are at 'default', you don't need to worry about .htaccess)

  9. crepusculae
    Member
    Posted 2 years ago #

    Oh, alright! It's still set to default. So I should only copy over and edit the index.php, then, correct?

  10. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    I have no way to know where you are in the process! BUt that is the only file that would need copied, yes

  11. crepusculae
    Member
    Posted 2 years ago #

    I haven't actually started yet. I wanted to check and make sure I was right before actually starting, because when I tried to do something similar last time I had to reinstall WordPress and re-make all my pages and it was kind of a disaster.

    One more quick dumb question, sorry: When this change happens will all of the page links change to defye.com/pageid , or will they still be defye.com/wordpress/pageid ?

  12. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    they will all be without the /wordpress directory

    Only your admin panel will reference the folder so - domain.com/wordpress/wp-admin

    (And your images and stuff will have /wordpress in the url, which you would notice in the html)

    Basically, stuff on the backend has the /wordpress folder in the url - admin stuff

    All the frontend stuff no longer will have any reference to /wordpress, so your visitors won't see that folder name referenced at all

    my personal blog rvoodoo.com is set up using the subfolder setup, if you check out the links, you will see no reference to a folder called /empire but that is where my stuff resides

  13. crepusculae
    Member
    Posted 2 years ago #

    Okay, awesome. I'm assuming I'll have to go in and manually change any links within the site myself, though? (Not a big deal, just checking)

  14. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Um.. yep, I guess that would be true! I didn't actually have to deal with that when I changed my site over, as I had no internal links.

    If your nav bar uses the standard process (pages are automatically added to it) you should be fine there.

    You could also redirect your old links to your new ones I would think, using a redirect plugin

    But I"m not an expert on that part of it... I didn't have any internal links to worry about....

  15. crepusculae
    Member
    Posted 2 years ago #

    Haha, yeah, I just went through and Find + Replace'd them. Otherwise though, it worked perfectly! Thank you SO much for your help :)

  16. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Great news! Glad that worked out for you!

Topic Closed

This topic has been closed to new replies.

About this Topic