User talk:Bill St. Clair

From Wolfekipedia
Jump to: navigation, search

Contents

Wiki Backup

I added to the backup scripts that run every night code to backup the wiki and restore it to the database on the backup server (tcftalk.nfshost.com/wiki). Still have to check tonight's full backup and tomorrow incremental backup to ensure that I didn't break anything and that the wiki is getting properly backed up. For now, I'm just doing a full backup of the wiki every day. When it gets bigger, I may have to do incrementals on every night but Saturday, as I'm doing with the forum.

Bug

There's a problem that Evil Twin noticed. Intra-wiki links saved using the https://erte.hmdnsgroup.com/~tcftalk/wiki/ URL don't work correctly from http://www.tcftalk.com/wiki/, and vice-versa. Look at the page source for, e.g. TEOTWAWKI, to see what it's doing. Maybe it can be convinced to create relative links.

It was a cache problem. By default, MediaWiki caches the generated HTML for pages. This includes links like <a href="/wiki/TEOTWAWKI">TEOTWAWKI</a> for http://www.tcftalk.com/wiki/ access, or <a href="/~tcftalk/wiki/TEOTWAWKI">TEOTWAWKI</a> for https://erte.hmdnsgroup.com/~tcftalk/wiki/. Tack either path onto the opposite access' host prefix, and it doesn't work.

I fixed it by disabling the cache, which will slow the wiki down some, but also make it use less disk space.

I disabled the cache by adding the following line to the bottom of LocalSettings.php:

$wgCacheEpoch = '29990516000000';

-- Bill St. Clair 21:35, 15 February 2007 (EST)

Rewriting Rules

Check out rewriting rules at http://www.mediawiki.org/wiki/Manual:Short_URL Bill St. Clair

Added rewriting rules on 2/11/2007

Works good. Now instead of wiki/index.php/name, the URLs are simply wiki/name I added the file /home/tcftalk/public_html/.htaccess, made public_html/w a soft link to public_html/wiki, and changed LocalSettings.php.


Dankeschön. :-)

("L. Niel" -> "L. Neil" (NOT the German spelling))


Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox