Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Difference between revisions of "Appropedia:Site development/archive (Admin tasks)"

From Appropedia
Jump to: navigation, search
(sitemap and user rename)
(Site Map: added a few notes on site map)
Line 19: Line 19:
=Completed Tasks=
=Completed Tasks=
==Site Map==
==Site Map==
Describe here.
*[ Google Sitemap extension]
*Somewhere [[User:Lonny|I]] have a detailed set of instructions on how I made this happen.  I will try to find them.
;Must visit [[Special:GoogleSitemap&limit=5000]] often.  Change limit to meet number of pages we want indexed.
==Short URLs==
==Short URLs==

Revision as of 12:46, 11 January 2007

Current Work

Renaming a user

Put the following file in the root wiki directory
Put the following three files into the includes directory
add the following line to Localconfig.php
include_once('includes/SpecialRenameuser.php') ;
Move user page (and talk page) to the new username
How to rewrite old signatures? A bot maybe.
See for work so far.

Completed Tasks

Site Map

Must visit Special:GoogleSitemap&limit=5000 often. Change limit to meet number of pages we want indexed.

Short URLs

  • See wikimedia and
  • Set path in LocalSettings.php to $wgArticlePath = "/$1";
  • Added .htaccess to root with the following content
RewriteEngine on

# Don't rewrite requests for files in MediaWiki subdirectories,
# MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt
RewriteCond %{REQUEST_URI} !^/(stylesheets|images|skins|extensions)
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/nowiki
# include these last two lines if you use the analog stats
RewriteCond %{REQUEST_URI} !^/failed_auth.html$
RewriteCond %{REQUEST_URI} !^/stats

RewriteRule ^(.*)$ index.php?title=$1 [QSA]

Input box


Some specifics after installing AWstats. See for nice instructions.

Perl to run the page

perl /home/lonny1/awstats/tools/ -update \  -awstatsprog=/home/lonny1/awstats/cgi-bin/  -dir=/home/lonny1/

Changes to log file

LogFormat="%host %other %other %time1 %methodurl %code %bytesd %refererquot %uaquot"
DefaultFile="index.php index.html"

Cron -e

One every hour on the fifteen minute mark.

15 0 * * * perl /home/lonny1/awstats/tools/ -update

Once per day at 3am:

0 3 * * * perl /home/lonny1/awstats/tools/ -update

Future steps

  • Password protect the folder [1].

More Notes

Still not working correctly.