Forums

[resolved] Giving WordPress Its Own Directory Backwards (3 posts)

  1. daand
    Member
    Posted 3 years ago #

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Here is a tutorial explaining if you want wordpress from http://www.site.com/wordpress too http://www.site.com/
    But i want it backwards..
    I have http://www.site.com/wordpress and i want my blog to be visible at http://www.site.com/
    How can i doo this?
    Just the opposite way.. i get it, but how?
    1. replace blogadress
    2. Copy the index.php and .htaccess files to root
    3. edit index.php? (which aint possible because it is already showing:

    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');

    Is this correct or not?
    I dont want my site messed up, it is really important..

    Thanks,
    Daan

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Don't agree that it is Backwards that you want...

    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.

  3. daand
    Member
    Posted 3 years ago #

    Thanks! it worked :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.