I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php

No, it’s not. Single quotes can’t cause redirects.