Re: mod_rewrite & open_basedir & pear

From: Date: Tue, 28 May 2002 09:11:24 +0000
Subject: Re: mod_rewrite & open_basedir & pear
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1472@lists.php.net to get a copy of this message
Hi Stig > > mod_rewrite is used to _hide_ urls from users and to _extend_ url with > > additional params. > > Is there anything stopping you from doing the mod_rewrite things in PHP > with a 404 error handler? :-) Well... I'm working on a system which would allow resellers provide various our services as their own at their own prices. Fully customized by reseller process where clients order services. There's an account generated for each reseller. http://11.22.33.44/~some_reseller/ Subfolder with reseller private files is kept there (eg pictures they use on their pages or css files). In addition to it there's a .htaccess which redirects all requests (with an appended param &reseller_id=12345) which are not requests for the files in a "includes" folder to the directory on the server where main process remain. This system allows me to do whatever i want to with the process, change filenames, add features without any need to update anything in reseller account directories. Can i be that flexible with a rewrite by php?.. Say, I can't do header('Location ...') cause it will reveal that the process is reselling which is not acceptable... Do you know ways to implement above by php only? Alexei

« previous php.pear.general (#1472) next »