add index file for redirecting to p dir