Things to do in Cape Town, the Helderberg, and the Cape Winelands

Tag redirect

WordPress: Switch to a New Domain by Setting a Permanent Redirect 301 via .htaccess

Deciding that I really don’t have the desire nor free time to support multiple websites across multiple domains, I’ve started the process of copying all the content over from my unwanted WordPress sites to my primary WordPress site (at… Continue Reading →

PHP: Page Redirecting with Header… and Die()

I make use of PHP’s handy header function to handle simple page redirects for me, perhaps a bit of a cheap way of doing it, but one that is remarkable effective. Sure, you need to change the way you code a little and perhaps introduce some ob_start and ob_end_flush calls if necessary, but on the whole a good old header(‘Location: newpage.htm’) call works pretty damn well.

© 2021 An Exploring South African — Powered by WordPress