Re: URL modification

From: Date: Fri, 22 Feb 2008 10:46:01 +0000
Subject: Re: URL modification
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269846@lists.php.net to get a copy of this message
Hmmmm... made a quick look into it. Seems to be apache compatible. I'm designing a site to be hosted on an IIS Server. Does it still works there?
On IIS I belive the default document is default.htm Though you should be able to modify this to whatever you please. On Apache it is index.html or index.php (for example). Regardless you want this to be parsed by PHP, and then you can stick the following in it: <?php
    header('http://www.example.com/login.php');
?> Place this file in your "login" directory and then you'll be able to publish URLs such as http://www.example.com/login The trailing slash is not necessary if login is a directory. For example: http://www.websupportsolutions.co.uk/demo -- Richard Heyes http://www.phpguru.org Free PHP and Javascript code

« previous php.general (#269846) next »