• Can I have wp installed in the root directory and have html pages also? In other words, can I have domain.com with wp installed on it and then also make html pages inside that same domain? I am asking because I have a domain that I have wp installed on domain.com/home and have other html files in the directory. I would like to have domain.com be the home page but I am worried that it will mess up the html files in the directory. If it is possible, can I move the wp file from /home right to the main directory and all will be good (plugins, themes, etc.)?

Viewing 5 replies - 1 through 5 (of 5 total)
  • In other words, can I have domain.com with wp installed on it and then also make html pages inside that same domain?

    Definitely.
    Just be careful for index.html at root of public directory. If you keep an index.html file in root of public directory, it will load on loading domain.com on browser instead of WordPress default homepage.

    I am asking because I have a domain that I have wp installed on domain.com/home and have other html files in the directory.

    No worries. Unless the name of path and file is exactly the same, there will be no issue. If you use directories there will be no issues.

    If it is possible, can I move the wp file from /home right to the main directory and all will be good (plugins, themes, etc.)?

    Yes. Possible if domain.com’s directory is set as publicly accessible root directory. Please check Moving WordPress in codex:

    http://codex.wordpress.org/Moving_WordPress

    You basically want to move WordPress from Subdirectory to public root directory.
    I am taking that domain.com/home is a sub directory.

    Thread Starter luckyrhyno

    (@luckyrhyno)

    Definitely.
    Just be careful for index.html at root of public directory. If you keep an index.html file in root of public directory, it will load on loading domain.com on browser instead of WordPress default homepage.

    Can you explain a little more for me. I don’t think I quite understand. Thanks.

    The rest of your replies were great!

    You can’t have a file named index.html in the same directory as your WordPress install. If you do, you will see the index.html page instead of your WordPress website.

    Note that this is actually configurable by your host, but priority is usually given to the .html file rather than the .php file used by WordPress.

    Thread Starter luckyrhyno

    (@luckyrhyno)

    So as long as I don’t have any other file “index.html” except foe the index.php file from the wordpress install in the root directory, I am good. Correct? Aditionally, if I moved the index file forme the wordpress install directoy to the root drectoy, I cannot have an index file in said sub directoy too. Correct? If this is all correct, then I believe I installed everything correctly.

    Yes luckyrhyno, you have understood the right.
    As basically you have HTML things, just keeping them within other named directories will make WordPress to run fine. You possibly have done everything correctly. Example can be (url based) :

    WordPress software is installed at example.com, so for normal installation, license.txt file is at http://example.com/license.txt

    You can keep any HTML files (except anything at root with index.html name) at root like http://example.com/about-this-site.html or to keep them organized in sub directories like http://example.com/your-folder-name/about-this-site.html

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where to install?’ is closed to new replies.