Added support for subsites and index page