SEO (with tips for MediaWiki and WordPress): Difference between revisions
Line 23: | Line 23: | ||
*SEO (Search Engine Optimization) | *SEO (Search Engine Optimization) | ||
*Tips for MediaWiki and WordPress related to SEO | *Tips for MediaWiki and WordPress related to SEO | ||
*SiteMaps | *SiteMaps (and don't Image SiteMaps too) | ||
*Robots (as in GoogleBot) | *Robots (as in GoogleBot) - robots.txt | ||
*Google Search Console (https://en.wikipedia.org/wiki/Google_Search_Console) | *Google Search Console (https://en.wikipedia.org/wiki/Google_Search_Console) | ||
*"Web master" tools for other search sites (Bing, etc.) | *"Web master" tools for other search sites (Bing, etc.) | ||
Line 40: | Line 40: | ||
* | * | ||
*Additional "Tips of the Current Era": Look at extensions for MediaWiki, like [[mediawikiwiki:Extension:WikiSEO|WikiSEO]] (discussed later), and the different settings it has. These are some fairly clear indications as to what is important to SEO. | *Additional "Tips of the Current Era": Look at extensions for MediaWiki, like [[mediawikiwiki:Extension:WikiSEO|WikiSEO]] (discussed later), and the different settings it has. These are some fairly clear indications as to what is important to SEO. | ||
*Create a robots.txt file in the root of the website that includes a reference to a sitemap | |||
*<syntaxhighlight lang="text"> | |||
Sitemap: https://Wiki.TerraBase.info/sitemap/sitemap-index-Wiki.TerraBase.info.xml | |||
</syntaxhighlight> | |||
* | * | ||
Line 191: | Line 195: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Systemd Timer for CentOS 7 & 8 and others === | ===Systemd Timer for CentOS 7 & 8 and others=== | ||
Based on information from: https://www.certdepot.net/rhel7-use-systemd-timers/ | Based on information from: https://www.certdepot.net/rhel7-use-systemd-timers/ | ||
<br /> | |||
Create a file that ends in .service in the /usr/lib/systemd/system/ directory similar to this (change paths as appropriate);<syntaxhighlight lang="text"> | |||
[Unit] | |||
Description=Create XML SiteMap for WhatEverURL | |||
[Service] | |||
Type=simple | |||
ExecStart=/usr/bin/php /var/www/html/WhatEverURL/maintenance/generateSitemap.php --server=https://WhatEverURL --fspath=/var/www/html/WhatEverURL /sitemap --urlpath=https://WhatEverURL /sitemap --identifier=WhatEverURL --compress=no --skip-redirects | |||
[Install] | |||
WantedBy=multi-user.target | |||
</syntaxhighlight>Create a file that ends in .timer in the same directory;<syntaxhighlight lang="text"> | |||
[Unit] | |||
Description=Timer Service that runs the sitemap.WhatEverURL.service | |||
[Timer] | |||
OnCalendar=*-*-* 00/12:00:00 | |||
Unit=sitemap.WhatEverURL.service | |||
[Install] | |||
WantedBy=multi-user.target | |||
</syntaxhighlight>Then enable the time with this command: systemctl enable WhatEverName.timer | |||
And start it with this command: systemctl start WhatEverName.timer | |||
Check its status with: systemctl is-enabled OR is-active WhatEverName.timer | |||
The .service can be checked with this command: systemctl start WhatEverName.service | |||
=== Handy Command to Find Information about Services === | |||
whereis WhatEverProgramOrService | |||
It doesn't tell everything about a service. Case in point, BIND or NAMED, because it doesn't mention the /var/spool/ directory for zone files.<br /> |