Reply to Re: PHP - Preprocessing Filters using wildcards on URL path

Your name:

Reply:


Posted by Alexey Kulentsov on 07/05/07 13:57

TATrader wrote:
....
> User types: http://domain.com/myapp/restofpath.html
> In a Java servlet, there exists a web-app which maps /myapp/* to a
> cookie checking filter before routing it to restofpath.html.
....

PHP can't, but it's not a problem because this is standard feature of
apache. See http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html for
details. So:
step 1. redirect URL by mask to 'filtering' script, adding old URL as
parameter (is .htaccess file).
step 2. check in this script all that you need and then call manually
actual page using include directive.

If you don't have mod_rewrite and can't setup it (bad provider case) you
can use ErrorDocument directive (again .htaccess)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация