[wp-trac] Re: [WordPress Trac] #4328: redirect old slug feature is
very broken
WordPress Trac
wp-trac at lists.automattic.com
Thu May 24 01:57:18 GMT 2007
#4328: redirect old slug feature is very broken
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2.1
Component: General | Version: 2.2
Severity: normal | Resolution:
Keywords: |
-------------------------------+--------------------------------------------
Comment (by Denis-de-Bernardy):
adding to the above, the workflow would be:
on post save, cache the url in a custom field. if url is different, append
previous value to the old urls.
on permalink structure change, do the above for every post and page on the
site.
extra benefit: scanning for which post is requested can be simplified in
many cases to something like: select from posts inner join postmeta where
url_cache.
D.
--
Ticket URL: <http://trac.wordpress.org/ticket/4328#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list