Forums

Root blog in subdirectory while coexisting with old site (4 posts)

  1. mlong212
    Member
    Posted 2 years ago #

    I am transitioning an existing html site to wordpress. I have wordpress installed into a sub directory "/wordpress" and sort of have it working with the index.php file in the root folder. I want the blog to act as thought it was in the root, but keep the files tidy.
    (Yes I have read through: Changing_Template_Files and Giving_WordPress_Its_Own_Directory

    The existing sites home page is index.html which I want to leave up until I am ready. I thought it would be slick to have the web host's directory list reading as follows: index.html index.php That way a visitor will be shown the original page, unless they manually type in index.php

    However, wordpress keeps kicking me back to the root directory (home) without asking for index.php which brings up the old index.html file.
    Is there a way to work around this? Its messing up the themes and other links, on top of with it is very annoying to develop this way

    The site that i am working on: stumpfsgym.com

    Can someone please help me?
    Thanks,
    matt

  2. mlong212
    Member
    Posted 2 years ago #

    Is there away to tell the index.html that if it was redirected to or called by php that it should use the index.php file instead?

  3. Saildude
    Member
    Posted 2 years ago #

    Two index files in the same directory is never good.

    When I started my site with WP I put it in a sub-directory and had a menu item on my main original site that sent a visitor down to WordPress in it's own directory. After I found out how powerful WordPress is I migrated the whole site into WP and then "moved" WP to the root and renamed my index.html file and WP now drives my whole site. Modest site to be sure but the move was painless. I have also put WP installs in other sub-directories such mysite/test1 and I would either send the link for review or visitors / testers knew where the test site was and could just type it in. Works well for me.

    My suggestion - is to "move" your WP back to it's own directory until the development is done and then "move" it back to the root.

    Trying to make two index files work in the same directory is more trouble than any payback I can imagine, you would probably need to get into the core WP files to make both index files to work - then you have non-standard core files.

  4. mlong212
    Member
    Posted 2 years ago #

    if i only use the index.php in the wordpress directory. When I am done, can i leave wordpress in the /worpress subdirectory and move the index.php again, only this time delete the index.html files. Will that mess up permalinks later on when i move it?

Topic Closed

This topic has been closed to new replies.

About this Topic