Forums

index.php in root, outside of wordpress folder (4 posts)

  1. chrismalinao
    Member
    Posted 3 years ago #

    i have my wordpress installation in a folder in my domain (public_html/wordpress) such that i can access my index.php by typing http://www.example.com/wordpress/. this is for the purpose of trying out wordpress and building up the pages without going prime time yet.

    later, i intend to access index.php at root such that i could access it by typing just http://www.example.com. i want only index.php at root and all other files should remain at the public_html/wordpress folder. is that good practice? how is that done?

    would it just be simpler if i deleted my wordpress folder and re-installed wordpress at root? i prefer my original intention if it does not get to be too complicated, accessing index.php at root but all other files inside the wordpress folder.

  2. Samuel B
    moderator
    Posted 3 years ago #

  3. TheDietControl
    Member
    Posted 2 years ago #

    samboll ,
    I folowed this link , except the part with permalink (i didn't understand what it means to "update").
    My site is http://www.thedietcontrol.com , I can't get remove the /wordpress...

    the .htaccess file was there in the root folder it wasn't in the wordpress folder...

    Please assist

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    To make WordPress available at http://mydomain.com just change in Settings->General, the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the wordpress folder)

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wordpress/wp-blog-header.php');
    ?>

    Then update your permalinks in Settings->Permalinks.

Topic Closed

This topic has been closed to new replies.

About this Topic