Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

How to Completely Remove index.php

In last week’s EE Help Chat, Kevin Thompson raised a question about removing index.php and preventing URLs with index.php from resolving, too. A couple of people in the chat room put their heads together and came up with a solution.

The problem:

At the time of this writing, if you were to visit http://expressionengine.com/index.php/overview/ or http://expressionengine.com/overview/, you’d be presented with the exact same page. Having the same content resolve at two distinct URLs can potentially harm your search engine rankings and disrupt your analytics.


The solution is a beefier set of rewrite rules to prevent URLs with index.php in them from resolving. Read Kevin’s write-up for the code you need (and be sure to check out the comments): Completely Remove index.php From ExpressionEngine URLs

Posted on Mar 09, 2011 by Ryan Irelan

Filed Under: Development Tools