I suggest sitemaps for added search engine visibility of all your pages, not just the front page. There is a generateSitemaps.php file in the maintenance directory. It can also be noted in your robots.txt file with a Sitemap: directive.
Here's the script we use to generate ours, called from a cron job:
#!/usr/local/bin/bash # Generate sitemaps for all wikis for wiki in pool cs de en es fr pl pt ru do /usr/local/bin/php /var/www/wikifur/prod/$wiki/w/maintenance/generateSitemap.php --server=http://$wiki.wikifur.com --fspath=/var/www/wikifur/prod/$wiki >/dev/null 2>&1 /usr/bin/sed -i -n 's//http:\/\/'"$wiki"'\.wikifur\.com\//' \/var\/www\/wikifur\/prod\/$wiki\/sitemap-index-$wiki.xml ln -s -f sitemap-index-$wiki.xml /var/www/wikifur/prod/$wiki/sitemap-index.xml done
exit 0 It's more complicated than you would since you don't have all these wikis. $wiki is replaced with each item of the list. The sed line is to replace the relative paths inside the sitemap index files with
( ... )
Comments 1
Here's the script we use to generate ours, called from a cron job:
#!/usr/local/bin/bash
# Generate sitemaps for all wikis
for wiki in pool cs de en es fr pl pt ru
do
/usr/local/bin/php /var/www/wikifur/prod/$wiki/w/maintenance/generateSitemap.php --server=http://$wiki.wikifur.com --fspath=/var/www/wikifur/prod/$wiki >/dev/null 2>&1
/usr/bin/sed -i -n 's//http:\/\/'"$wiki"'\.wikifur\.com\//' \/var\/www\/wikifur\/prod\/$wiki\/sitemap-index-$wiki.xml
ln -s -f sitemap-index-$wiki.xml /var/www/wikifur/prod/$wiki/sitemap-index.xml
done
exit 0
It's more complicated than you would since you don't have all these wikis. $wiki is replaced with each item of the list. The sed line is to replace the relative paths inside the sitemap index files with ( ... )
Reply
Leave a comment