cakephp - PHP redirect only root domain -


i need php code redirect index page site fast somthing problem : code redirect page

 <?php       header('status: 301 moved permanently', false, 301);         header( 'location: http://www.fastfreesurfing.cf/' ) ;         exit();       ?> 

do this:

if ($_server['request_uri'] == '/' || strtolower($_server['request_uri']) == '/index.php') {     header('status: 301 moved permanently', false, 301);           header( 'location: http://www.fastfreesurfing.cf/' ) ;           exit(); } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -