• In Chat
  • About
  • Contact
  • Browse

    Latest Coding

    Latest Daily

    Latest Health

    Featured Story

Coding 2018

| Begin | File Bank |  Register | Reply | Search | Statistics | Manual |
Site Coding Coding / Site Coding /  

Implementing minibb site maps with cron update on MAMP

Author Admin

#1 | Posted: 30 Sep 2018 08:20 | Edited by: Admin 
This works as long as long as the 'Keyword Rich URL' plugin hasn't been implemented.

Step 1: create a sitemap php creation file in the root of your website. Name it anything you want.

Single Forum Code PHP File

Multiple Forum Code PHP File
(3 forum installations on this site hence 3 sitemaps required)

Step 2: create the necessary text file(s) the above code requires in the root of your domain.

Step 3: alter the permissions on the text file so it is writeable - 666 might well do it on some servers (not necessary on MAMP).

Step 4: run the file off its URL to check it is working.


Using the mac Terminal carry out these steps

Step 1: type crontab -e

Step 2: press the key i (for insert)

Step 3: enter this line ...

0 */3 * * * curl URL of your sitemap creation file here, including http://

Step 4: press ESC to close down insert

Step 5: type shift ZZ to exit from cron

Press Shift ZZ to exit

You can check the entry by typing contab -l (lowercase L).

To run a check on the above you can alter the cron code to this ...

*/2 * * * * curl URL of your sitemap creation file here, including http://

Close cron and check the sitemap text file after 2 mins has passed. If successful alter the code back to what it was.

Handy website to work out cron intervals ...

If everything is right and proper you should now have a forum sitemap being created every 3 hours (alter to suit).

Handy website to work out cron intervals ...


Include a line such as this ...

SITEMAP: URL of your sitemap file including http://

This site's robots.txt file ...

Website Designer

Your Reply Click this icon to move up to the quoted message

Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Coding Powered by Forum Software miniBB ®
Online now: Guests - 1
Members - 0
Max. ever online: 33 [10 May 2019 12:44]
Guests - 33 / Members - 0
No Of Posts

  • Latest Daily Post ...

  • Latest Health Post ...


Phone: +01 0775 8107 427



email icon Mark Jones

Latest Story


  • Copyright © 2018 MKJ Brainwaving