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).

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

3 Answers
3

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.

Leave a Comment