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

From: Date: Thu, 07 Feb 2002 17:31:12 +0000
Subject: RE: [PHP] probs w/ pass vars as fake directories
Groups: php.general 
Request: Send a blank email to php-general+get-83878@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

« previous php.general (#83878) next »