Changes

Jump to navigation Jump to search
625 bytes added ,  22:29, 19 May 2017
no edit summary
Line 131: Line 131:  
<pre>
 
<pre>
 
$sudo chmod 000 mw-config
 
$sudo chmod 000 mw-config
 +
</pre>
 +
 +
== Create Sitemap ==
 +
Create a Bash Script for cron usage, like sitemapwiki.sh
 +
enter:
 +
<pre>
 +
#!/bin/bash
 +
cd /webspace/wiki/  #go to wiki path
 +
rm -rf sitemap      #purge old sitemaps
 +
mkdir sitemap      #create new directory for sitemaps
 +
php maintenance/generateSitemap.php \
 +
  --skip-redirects \
 +
  --fspath sitemap \
 +
  --server https://wiki.linuxonlinehelp.de \
 +
  --urlpath https://wiki.linuxonlinehelp.de/sitemap
 +
exit 0
 +
</pre> 
 +
 +
== enable Apache24 Sitemap Access ==
 +
add to vhosts Config of the Wiki:
 +
<pre>
 +
<Directory "/webspace/wiki/sitemap/">
 +
Require all granted
 +
AllowOverride All
 +
Options -Indexes
 +
</Directory>
 
</pre>
 
</pre>

Navigation menu