I'm trying to figure out a generic permalinks structure for blogging, in order to be platform-independent. I know that Wordpress supports permalinks, and has some plugins for various permalinks style migration, but I also have to get it working in FlatPress and PivotX, and I don't have URL rewriting support in every place.
So far, I will try to use a folder like /permalinks/ into which an index.php file would redirect to the actual post, e.g. /permalinks/index.php?external-link-01 would redirect to /index.php/2009-02-03/external-link-01 or /index.php/e=42, based on the actual blogging platform being used.
For nicer permalinks, and to avoid URL rewriting, I could create a subfolder for each permalink (like /permalinks/external-link-01/), in which the default index file would do the redirection.
So,
- Is there a nicer way to maintain this kind of permalinks?
- What kind of redirect must I use?
- What can I do in order to allow bookmarking the permalink after the redirect? (e.g. the current page is /index.php/e=42 and the bookmark should be /permalinks/index.php?external-link-01)