underconstruction redirect users to a under construction (or nothing) page by IP Address.

  1. Requirements
  2. Homepage
  3. Usage

I wanted the option of hiding my yii application from the public, and .htaccess did not 100% serve my needs. Using this component, I can very easily turn my site on and off and add manage allowed IPs from my config file.

I mainly use this as a way of protecting a site from the general public during development/testing/etc, redirecting the user to a 'coming soon' page.

ALSO: i'm a bit of a noob and wasn't sure how this should be categorized/tagged. Please post suggestions if you have them.


...requirements of using this extension (e.g. Yii 1.1 or above)...




...how to use this extension...

  1. Upload file UnderConstruction.php to components directory
  2. Load Component in main.php
// preloading 'log' component
  1. Configure Component
'UnderConstruction' => array(
	      	'class' => 'application.components.UnderConstruction',
	    	'allowedIPs'=>array('',''), //whatever IPs you want to allow
	   	'locked'=>true,//this is the on off switch
	     	'redirectURL'=>'http://www.yiiframework.com',//put in your desired redirect page. 			
9 0
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: dmapes123
Created on: Apr 9, 2012
Last updated: 8 years ago


show all

Related Extensions