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