Is there a way to use pages to display a page based on the url rather than /index.php/*.
For example, http://www.example.com/blog rather than http://www.example.com/index.php/blog, it seems http://www.expressionengine.com does this.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
November 21, 2007 12:17pm
Subscribe [1]#1 / Nov 21, 2007 12:17pm
Is there a way to use pages to display a page based on the url rather than /index.php/*.
For example, http://www.example.com/blog rather than http://www.example.com/index.php/blog, it seems http://www.expressionengine.com does this.
#2 / Nov 21, 2007 12:40pm
While it’s not officially supported, many folks do it via htaccess- see this wiki entry on how to do it. Note however- it may vary a bit depending on your server setup.
#3 / Nov 21, 2007 12:43pm
But ExpressionEngine.com does it right? Is that done via htaccess?
We have a lot of pages we already have indexed and linked, and I don’t want to loose those links. But then again, I don’t want to have to have a htaccess file with lots of rewrites as it would be needless overhead.
#4 / Nov 21, 2007 12:46pm
It’s pretty much the standard way to remove it. But- it’s easy to do- as long as it works. At most, you just have to list what folders you DON’T want rewritten- or which template group names you DO want rewritten. In other words? Once you set it up, you hardly ever have to change it. It’s not a ‘per url’ type thing.
And there’s one method you don’t have to specify anything- though it’s a bit more server intensive.