Hi MQ
You can convert the PHP part of the code to your Moodle site's URL
Also if you are using a Bootstrap based theme you can use this HTML instead:
<a class="btn btn-primary" href="http://yoursite.com/login/signup.php"><i class="fa fa-sign-in"> Register</i></a>
so that it looks like this...