Custom Signup Page & Signup Slug

I had been looking at this closed post in order to set up a custom signup form with a slug of my choice e.g. mydomain.com/signup.

Since Wordpress has updated to 3.8 the instructions on this post no longer worked. I thought I'd share with you how I've managed to figure it out.

First - create a new file in your template theme. I called mine 'custom-register.php'

Second - Add a template header at the beginning of the file:

<?php
/*
Template Name: Custom Wordpress Signup Page
*/

/** Sets up the WordPress Environment. */

//add_action( 'wp_head', 'signuppageheaders' ) ;
require_once( ABSPATH . WPINC . '/registration.php' );

?>

Third - Copy everything from wp-signup.php in your root folder into custom-register.php after the above template header.

Fourth - Change the following lines:
require( dirname(__FILE__) . '/wp-load.php' );
to
require('./wp-load.php');
and also change:
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
to
require('./wp-blog-header.php');

Fifth - In you Wordpress admin add a new page. I called mine 'Signup' and named my slug/permalink 'signup.' Then under Page Attributes, select the 'Custom Wordpress Signup' template.

SAVE and view yourdomain.com/signup

Because you have added a custom-register.php file to your theme folder, your core files are kept safe for upgrading etc. Feel free to now fully customise your signup page by editing the custom-register.php file.

I hope this helps. Let me know how you get on.