modded rewrites for all install types