
Can you make this table available so that we can correctly update links in other forums

ronk wrote:gsf, I looked at some of my old posts with the intent of updating URLs. It seems that all internal links -- links to posts in this forum -- are already updated.I'm assuming this is because you captured HTML pages with your May '09 snapshot ... and means you must have an old-to-new URL lookup table.
Can you make this table available so that we can correctly update links in other forums
# convert old player's forum urls to new
URL_DECODE_OLD_1='http://www\.sudoku\.com/\(boards\|forums\)/'
URL_DECODE_OLD_2='http://sudoku\.com/\(boards\|forums\)/'
URL_DECODE_NEW='http://forum.enjoysudoku.com/'
URL_ENCODE_OLD_1='http://www.sudoku.com/\(boards\|forums\)/'
URL_ENCODE_OLD_2='http://sudoku.com/\(boards\|forums\)/'
URL_ENCODE_NEW='http\://forum\.enjoysudoku\.com/'
for i
do echo "$i" |
tr A-Z a-z |
sed \
-e "s,$URL_DECODE_OLD_1,$URL_DECODE_NEW,g" \
-e "s,$URL_DECODE_OLD_2,$URL_DECODE_NEW,g" \
-e "s,$URL_ENCODE_OLD_1,$URL_ENCODE_NEW,g" \
-e "s,$URL_ENCODE_OLD_2,$URL_ENCODE_NEW,g" \
-e 's/?p=\([0-9][0-9]*\)#\1/?p=\1#p\1/g' \
-e "s/\\([^\\\\]\\)'/\\1\\\\'/g"
done
JasonLion wrote:Also, if there is a "#NNN" at the end of URL, where NNN can be any number, add a 'p' after the '#', so it becomes "#pNNN".
For example:
becomes:http://forum.enjoysudoku.com/viewtopic.php?t=2646
JasonLion wrote:Not exactly.
What you will normally see with a "p=" will be:http://www.sudoku.com/boards/viewtopic.php?p=11444#11444
which goes to:http://forum.enjoysudoku.com/viewtopic.php?p=11444#p11444
dobrichev wrote:Could somebody update the links to former sudoku-dot-com in en.wikipedia.org ?
I tried to fix the first 2 links at http://en.wikipedia.org/wiki/Mathematics_of_Sudoku,
namely---and viewtopic.php?t=44&start=138
and saw the results are not acceptable. Seems some extra work must be done.
JasonLion wrote:p=2 refers to post #2,
which was deleted years ago,
well before the backup we restored from.
dobrichev wrote:Could somebody update the links to former sudoku.com in en.wikipedia.org ?
I tried to fix---at http://en.wikipedia.org/wiki/Mathematics_of_Sudoku---and saw the results are not acceptable.
Seems some extra work must be done.