this code is necessary to exclude index pages from having the destination file path altered in an unexpected way.