Changed some rewrite rules to fix some broken links