Monday, November 17, 2008

phpTinyURL for WordPress articles

Creating a “GoTo” URL For Your WordPress-Powered Site

Create a folder w/ a short name and send post ID to it:
http://www.showbizradio.net/goto/2133

For HTACCESS:

RewriteEngine On
RewriteRule ([0-9]+) /index.php?p=$1 [R=301,L]
RewriteRule (.*) / [R=301,L]


I had to do 2 redirects, one htaccess, one php header redirect to use our SEO-friendly slug url.

No comments: