Quick Hack : 301 redirect from index to /
Wednesday, May 31st, 2006 If you’ve ever tried to do a redirect from index.htm or index.php to / on a website, you’ll know that it creates an infinite loop already. What’s the solution? ModRewrite, of course.
RewriteEngine On
RewriteCond %{REQUEST_URI} ^.*domain.com/index.php$
RewriteRule ^index.php http://www.domain.com/ [R=301]
Many of us in the SEO space know that duplicate content is a bad thing, and / and […]

























