Added support for the page extension ($config['page_extension']) suggested by markbern