Pointing domain to a subdirectory

I installed my site to
http://www.teamluke.net/wordpress/
but now i want when people go to
www.teamluke.net
I will be taken there. Is this as easy as movinng the index.php file from the wordpress directory to the root and sssimply edit it to say

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);

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

Thanks

This isn’t simply change index.php directory but moving whole wordpress.
See http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

Post edited by TechnoBear to remove self-promotion

The procedure to giving WP its own directory is explained here:

https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

In your case I guess you’ll be interested in “Using a pre-existing subdirectory install”

Please refer to this url - https://www.youtube.com/watch?v=wlCTJsbLN28

thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.