[resolved] Develop WordPress in a subfolder with existing html site in another subfolder? (3 posts)

  1. SusanGriffithspbf
    Posted 1 year ago #

    Hello everyone!

    I'm so new to WordPress that I haven't even installed it on my ISP's server yet, but I'd like to ask a question so I can get everything right from the beginning. I've searched existing topics and can't find anyone in exactly my situation, so I apologise if my question has already been answered.

    At present I administer a website (www.nlha.org.uk) which was built using html and CSS. It's in a subdirectory (nlha.org.uk/html) of the root directory on 1and1's server, and I've pointed the domain name to /html as its root directory.

    I'd like to instal WordPress in another subdirectory (/wordpress) and develop a new site there, pointing the domain name to the wordpress subdirectory when the site is finished. I'm just worried that any links which are generated in the wordpress subdirectory may not work properly when I change the root directory for the domain name from /html to /wordpress. Am I worrying unnecessarily? Is there a fairly straightforward way of handling this?

    Any advice would be greatly appreciated. If there is a previous topic which answers my questions, I would be grateful for a nudge in its direction.

  2. jonradio
    Posted 1 year ago #

    Your situation adds a layer of complexity to the normal situation because you can change what directory your domain name points to. But, in general, a search/replace is required for the WordPress database when you move from a test WordPress in a folder to a production WordPress in the "root" of the domain.

    With that additional layer in mind, you will probably want to start your reading here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install

    My normal modus operandi is to build a WordPress install in a subdirectory, then use that method to make it look like WordPress is in the root of the domain name, even though it is not.

  3. SusanGriffithspbf
    Posted 1 year ago #

    Many thanks for your very speedy answer to my question. Perhaps I am making things too complicated and should stick to your method which does, after all, place WordPress in its own subdirectory.

Topic Closed

This topic has been closed to new replies.

About this Topic