Re: Redirect script
| From: | (Richard Lynch) | Date: | Fri, 10 Nov 2000 00:27:47 +0000 |
| Subject: | Re: Redirect script | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24592@lists.php.net to get a copy of this message | ||
In article <FFEKLPFCKNDPKMBBHJHCOEMPCIAA.dan@harringtons.net>,
dan@harringtons.net ("Dan Harrington") wrote:
> I make a symbolic link for each of the lines found in redirect.txt to my
> script.
>
> ln -s myscript.php link1
> ln -s myscript.php link2
> ln -s myscript.php link3
> ln -s myscript.php link4 ...etc.
>
> When the php script is called, it isn't executed, the source code is
> displayed on the browser screen.
Either do a ForceType for each link in your .htaccess, or name the links
as link1.php, link2.php, etc
Apache keys off of the extension to know what to do with it.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)