XAMPP localhost redirects to localhost/dashboard -


i've installed xampp-win32-5.5.30 , in xampp control panel both apache , mysql started without error found:

1)localhost in browser redirects page localhost/dashboard/ , not xampp start page.

2)localhost/xampp shows following:

index of /xampp  [ico]   name    last modified   size    description [parentdir] parent directory        -     apache/2.4.17 (win32) openssl/1.0.2d php/5.5.30 server @ localhost port 80 

in c:\xampp\htdocs\index.php file:

<?php        if (!empty($_server['https']) && ('on' == $_server['https']))      {             $uri = 'https://';     }      else      {             $uri = 'http://';     }     $uri .= $_server['http_host'];     header('location: '.$uri.'/dashboard/');     exit; ?>  wrong xampp installation :-( 

is there wrong installation?

this:

header('location: '.$uri.'/dashboard/'); 

performs redirect localhost/dashboard/

everything works expected, if clear file , put text, "hello world", should see on http://localhost/


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -