Preserving old URLs
This task is part of the FellowshipHacks/Projects/ContentMigration project.
Goal
Once we migrate content from ez to the new tools, we should make sure that all links pointing to the current URLs on ez don't get a 404 error, using proper Apache redirect/rewrite/alias rules.
People
Volunteers are always welcome! Have a look at FellowshipHacks to know how you can help
Status
Redirection for blogs are in place.
Last updated on: 090210
Subtasks
For each of the affected components, follow this procedure:
- Enumerate the URLs that must be preserved
- For each kind of URL, set up an Apache rewrite/redirect rule
Simple goals: apache mod_alias: "Redirect" or "RedirectMatch" directives
More complicated goals: apache mod_rewrite: "RewriteRule" directives
- Test the rule on a dedicated virtualhost/server
- (when the component will be migrated/activated) add the rule to the fsfe.org webserver.
TODO
User home pages
- A single rewriting rule is needed
(www.)fsfe.org/fellows -> wiki.fsfe.org/Fellows
Other pages
One rule for each page/directory:
(www.)fsfe.org/transcripts -> wiki.fsfe.org/Transcripts
(www.)fsfe.org/card -> wiki.fsfe.org/Card
- ...
DONE
Blogs
Notes:
- For each blog we have to manage the following URLs
- Main blog webpage
EZ: http://www.fsfe.org/fellows/fellowname/[foldername/]blogname
- Beware: if the fellowname contains some special characters, the name used on the URL will be different (e.g. underscores instead of dots, etc)
- RSS feed
- Post (EZ title words):
EZ: http://www.fsfe.org/fellows/fellowname/[foldername/]blogname/post_title
- Note: the post_title is contained in the path_identification_string field of our zz_posts table
WP: http://blogs.fsfe.org/fellowname/?p=123
Note: this URL scheme is always functioning regardless of the permalink configuration choice made by each blogger
- Post (EZ node_id):
- WP: see above
- Main blog webpage
Hint: use apache RewriteMap directive and build up the needed maps using SQL queries used in the data migration script
References:
- Thread on f-h@ 081210
- WP useful docs