Re: htaccess / php

From: Date: Tue, 02 Dec 2003 06:57:38 +0000
Subject: Re: htaccess / php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171547@lists.php.net to get a copy of this message
Ed Lazor wrote:
What do I put in .htaccess for Apache to process a named "archive" as a PHP file? I did it before and can't seem to find what I did. Requests to http://myhost.com/archive/page1.php would get processed by the file named archive and page1.php would just be a parameter that I could access from within the script by checking the url and subtracting "http://myhost.com/archive/".
    <Location "/archive">
      ForceType application/x-httpd-php
    </Location>
-- H| I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.

« previous php.general (#171547) next »