Removing index.php from a subdirectory in ExpressionEngine

Excuse me a moment while I get my geek on.  I wanted to mention this here, so we could easily refer back to it and in case anyone else needs it.

Not very often do we have EE running in a subdirectory but it happens and when it does we still need a way to remove index.php from the url's so everything is nice and clean.  The supported index.php removal isn't going to slice it, but this little piece of joyous code will.

RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index.php) [NC]
RewriteRule ^(.*)$ /subdirecotry/index.php/$1 [L]

Pop that into your .htaccess file in the subdirectory where EE is located, rename “subdirectory” with the name of the subdirectory you are using and everything should be right in the world.

Happy Dev!

Adding your Pinterest feed to ExpressionEngine

Super easy and totally painless.

First you’ll need your Pinterest RSS feed url, which you can find on your Pinterest profile page. Ours is http://pinterest.com/emtwo/feed.rss

Next you’ll need to install the SuperGeekery Tag Stripper plugin so we can extract the image url from the RSS pinterest feed and get rid of the rest of the html added by Pinterest.

You’ll also need the Magpie plugin (which ships with current versions of EE) so we can actually display the feed.

On to the code:
{exp:magpie url="http://pinterest.com/emtwo/feed.rss" parse="inward" refresh="720" limit="5"}
{items}{exp:tagstripper:tagsToSave tags="img"}{description}{/exp:tagstripper:tagsToSave}{/items}
{/exp:magpie}

All you need to do is change out the URL parameter to your Pinterest feed url and adjust the refresh rate (in minutes) to your preferred rate. You can adjust the limit to show 1 item or all your feed items, like we do here.

Content Strategy Lead Magnet (grass)

Implement a Solid Content Marketing Strategy in 7 days or less.

Stop stressing about being behind your competition. Download our free 8-point Content Marketing Checklist and start implementing a killer content strategy this week.