How to point my domain to a WordPress install in a sub-directory?

I have recently been re-designed a client’s website (whose website is – for example purposes – mywebsite.co.uk)/

I have developed the new website (a heavily modified wordpress install) in a sub-directory (eg: www.mywebsite.co.uk/new).

Read More

I would now like for my new website to replace my existing website, and for visitors to find the new site when they visit mywebsite.co.uk. How is this best achieved?

Any help is greatly appreciated,

Dan

Related posts

3 comments

  1. I’d copy the wp subdirectory index.php to the top level, and edit the line

    require(‘./wp-blog-header.php’);

    to be

    require(‘./subdir/wp-blog-header.php’);

    and of course set the settings for site url and wordpress url to match as suggested above.

  2. Further to anmari’s answer, the WP codex page that describes this in detail. You specifically are looking for “pre-existing subdirectlory”.

  3. Go to the the Settings page and change the wordpress address and site address to the correct url – http://www.mywebsite.co.uk/new

    Alternatively, if you can’t change it in the settings, you can do this in the database under the options table.

    WordPress will change your .htaccess file automatically after changing the settings.

Comments are closed.