redirect incoming traffic to alias location
Posted: 30. March 2011 07:44
I'm using xampp to create a intranet site for a wireless network. I have the wifi network set up to point incoming connections a windows machine running xampp.
I have the site files in a folder C:/xampp/test and I created an alias called TestAlias to point to this folder. I confirmed it is working locally on the xampp machine (http://localhost/TestAlias points to the correct website files located in the test folder).
I tried editing the index.php file in the htdocs folder:
this does not work but most likely I am doing something wrong. Can anyone enlighten me on how I might get this working? Sorry if this is a noob question but I just started development on this yesterday and this is my first time working with xampp.
I have the site files in a folder C:/xampp/test and I created an alias called TestAlias to point to this folder. I confirmed it is working locally on the xampp machine (http://localhost/TestAlias points to the correct website files located in the test folder).
I tried editing the index.php file in the htdocs folder:
- Code: Select all
//header('Location: '.$uri.'/xampp/');
header('Location: '.$uri.'/TestAlias/test/index.htm');
this does not work but most likely I am doing something wrong. Can anyone enlighten me on how I might get this working? Sorry if this is a noob question but I just started development on this yesterday and this is my first time working with xampp.