From owner-freebsd-stable@FreeBSD.ORG Sun Jun 26 18:22:12 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FA7116A41F for ; Sun, 26 Jun 2005 18:22:12 +0000 (GMT) (envelope-from gabor.kovesdan@t-hosting.hu) Received: from viefep20-int.chello.at (viefep12-int.chello.at [213.46.255.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEC2A43D48 for ; Sun, 26 Jun 2005 18:22:10 +0000 (GMT) (envelope-from gabor.kovesdan@t-hosting.hu) Received: from [80.98.156.20] by viefep20-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050626182209.XEHL29474.viefep20-int.chello.at@[80.98.156.20]>; Sun, 26 Jun 2005 20:22:09 +0200 Message-ID: <42BEF243.3020108@t-hosting.hu> Date: Sun, 26 Jun 2005 20:21:55 +0200 From: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Maher Mohamed References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org Subject: Re: index.php X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2005 18:22:12 -0000 Maher Mohamed wrote: >how can i make my server link to be redirected to the index.php > >i hve a web page at http://150.140.210.79:2005/~mahmoh >the thing is that if i make the index.html to index.php the whenever i >go to the url above >i have to add the extra /index.php > >can i get rid of that? is there a way? > > -- >Mohamed M. Maher >_______________________________________________ >freebsd-stable@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-stable >To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > You should modify your DirectoryIndex line in httpd.conf in such way: DirectoryIndex index.html index.html.var index.php index.phtml According to that, the webserver firstly looks for index.html, if it doesn't exist, then for index.html.var... The index.php is the third in this example, but You can use a different order. Cheers, Gábor Kövesdán