Now as part of my comeback, I’ve installed this blog in a folder called ‘site’. So the URL is currently https://timbrownlaw.com/site and I’ll be sending all my traffic to https://timbrownlaw.com. The Home page is going to be… well something in the near future. So how do I do a redirect?
Well there are a couple of options. I could do a redirect in the .htaccess file OR I could simply perform a little php redirect. Using something like
<?php
header("location: site");
?>;
Important note: if you are a budding php programmer, you do not need to have the ending php tag. So the ?> is recommended to Not Be There as it can cause potential problems like the ubiquitous “Headers already sent” Error.
So I’ll do that and that should fix that up for now until I decide what’s going on the Home Page.
Related Post: How to create an Affiliate link – the old way