dangerousmeta!, the original new mexican miscellany, offering eclectic linkage since 1999.

Mod_rewrite and redirecting Wordpress ?= entries to Expression Engine:

Tobias gave me the fix, but I wanted to officially record it here so that others who troll the search engines looking for a solution can find it.  After you “ReWrite Engine On”, try these suggestions.

This will allow you to redirect your rss feed, if you’re using a standard Expression Engine Template install:

RewriteCond %{QUERY_STRING} feed=
RewriteRule (.*) http://yourdomain.com/site/rss_2.0? [R=301]

And this will allow you to redirect any individual entries (replace the # with your entry #):

RewriteCond %{QUERY_STRING} p=103
RewriteRule (.*)http://yourdomain.com/yournewpage? [R=301]

Because I couldn’t wildcard my entire list of entries, I used Google Analytics to choose my top entries, and redirected those.  I left no duplicates online, so Google will eventually catch up.

01/05/08 • 06:55 PM • Expression EnginePersonalSoftwareWeblogs • No Comments
Page 1 of 1 pages