sushil bharwani
sushil bharwani

Reputation: 30187

How to open application just by typing server name?

I have a server which is having several applications. lets say server is abc.corp.com it is having application xyz pqr mno etc. Today the applications are accessed as

abc.corp.com/xyz abc.corp.com/pqr abc.corp.com/mno

Out of these i want application xyz to open just by typing abc.corp.com and rest of the applications opening normally.

My Server is apache and i am having php applications inside it. I have read alias can help me do that. But how exactly i can achieve it is not clear.

Upvotes: 0

Views: 76

Answers (1)

Ivan Buttinoni
Ivan Buttinoni

Reputation: 4145

Please put this code in index.php of abc.corp.com (http://abc.corp.com/index.php position)

<?php
header location('http://abc.corp.com/xyz');
die();
?>

Upvotes: 2

Related Questions