RE: [PHP] probs w/ pass vars as fake directories

From: Date: Thu, 07 Feb 2002 17:33:31 +0000
Subject: RE: [PHP] probs w/ pass vars as fake directories
Groups: php.general 
Request: Send a blank email to php-general+get-83885@lists.php.net to get a copy of this message
> > I tried it out on my site by deleting the get parameters and > > typing the mock directories in on the url. Very cool, my website > > is still being displayed even with the fake directories. BUT, > > I noticed that the server was not finding my css page or my images. > You need to exclude certain requests from your parsing of the fake > directories. Are you using mod_rewrite to accomplish this, or passing > everything through a 404 handler? > With mod_rewrite it's a simple task to add an exclusion rule, just stick > something like this in your .htaccess or httpd.conf: > RewriteRule !\.(gif|jpg|css)$ /usr/local/apache/htdocs/index.php > With a 404 handler I can't work out how the problem would arise :-) > Cheers > Jon Oops, I've missed an important step :) I didn't rewrite the url. That makes a lot of sense! I'll see what I can come up with with my 404 handler, and check out mod_rewrite (see if my ISP has given me access to it). Thank you very much! Rita.

« previous php.general (#83885) next »