Fixing index files to work with base URL