, and expect to get the same
output as with the previous request, as shown in Figure 3-10.
In this example you started by modifying
to accept product URLs that accept a product
ID and a category ID. Then you added URL rewriting support for URLs with two numeric parameters.
You created a rewriting rule to your
file, which handles URLs with two parameters:
The rule looks a bit more complicated, but if you look carefully, you’ll see that it’s not so different from
the rule handling URLs with a single parameter. The rewriting rule has now two parameters —
number that comes after
, and is defined by
), and the second parameter,
the number that comes after
Figure 3-11 is a visual representation of how this rewrite rule matches the incoming link.
The result is that you now delegate any URL that looks like
Client requests URL
PHP script executes
Chapter 3: Provocative SE-Friendly URLs
c03.qxd:c03 10:39 63
Bitcoin Dice - Crypto Casino . paperhelp expert