Problem after moving multisite to sub directory.

I've moved all the core file into a new dir for security reasons. The site is running well but the URL is wrong when going to the 'Network admin' area of the multisite. Once you're logged in click on the Network Admin tab in the top left corner - you'll get a 404 because the 'wp' dir is missing from the URL. Once it is added manually it works.