Skip to content

Instantly share code, notes, and snippets.

View Stenerson's full-sized avatar

Matt Stenerson Stenerson

  • eMenuCHOICE
  • Minneapolis
View GitHub Profile
@Stenerson
Stenerson / redirect.php
Created December 14, 2013 14:18
One of my projects recently migrated domains over a weekend. I was concerned that many of the users (who are mostly very non-technical and use tablets to access the site) would panic and stop using the site if they didn't already know about the new domain. I could have done a permanent redirect to the index of the new domain but I know some user…
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Redirect extends CI_Controller {
function __construct() {
parent::__construct();
}
public function index()
{