Hello Anupam,
Fapws takes the 1st match
Thus /page1/random match the URI /page1
This is the normal behavior (
http://www.fapws.org/getting-started).
More over with your setup you'll always match "/", when /pageX are not
requested.
In your specific case, you could build a displayerror method, that you
will trigger when PATH_INFO is not null.
W