Use app.index_file for replacement Regexp