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

2002-02-07 Thread Mikusch, Rita



> > 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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

2002-02-07 Thread Jon Haworth

> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php