The Dispatcher handles URL redirections.
For instance, instead of using multiple files in the root folder like
category.php, PrestaShop only uses one file:
Starting with PrestaShop 1.5, front office URLs look like this:
Likewise, back office URLs look like this:
Additionally, the Dispatcher is built to support URL rewriting (or "Friendly URLs"). Therefore, PrestaShop URLs which look like this when URL-rewriting is off...
...will look like this when URL-rewriting is on:
There are several advantages to this system:
The Dispatcher makes use of three abstract classes:
AdminController (the last two inheriting from the first one).
New routes can be created by overriding the
The store's administrator can change a controller's URL using the "SEO & URLs" page in the back office's "Preferences" menu.