Adding Site Map functionality can help your users navigate and locate information on your website.
Setting up specific forums (or your entire site) for inclusion in a site map is easy to do.
- Copy site_index.xml to the doc root of your website and set it to 666.
- Create a robot.txt file in your main root directory with the following information:
#############################
#
# sample robots.txt file for this website
#
# addresses all robots by using wild card *
User-agent: *
#
# list folders robots are not allowed to index
#Disallow: /tutorials/404redirect/
Disallow:
#
# list specific files robots are not allowed to index
#Disallow: /tutorials/custom_error_page.html
Disallow:
#
# list the location of any sitemaps
Sitemap: http://www.yourdomain.com/site_index.xml
#
# End of robots.txt file
#
#############################
- Set any forums you want to site map to enable the site map in:
AdminCP >> Forums >> Manage Forums
(Please note: Only those forums opened to guest-read topic access and which are active will be site mapped.)
- Set any forums you want to site map to enabled in:
AdminCP >> Portal >> Manage RSS Channels
- Run the following in a web browser:
Code:
http://www.yourdomain.com/your_fusion_dir/cron/site_maps.php?map_type=1&index_all=1&gzipped=1
- Directory Permissions Should be Set as Such:
public_html = 750
public_html/site_index.xml = 666
public_html/forum = 777
public_html/forum/sitemap_update.log.php = 644
public_html/forum/sitemap.xml.gz = 644
public_html/forum/sitemap.xml = 644
public_html/forum/site_index.xml = 644
public_html/forum/sitemap-X.xml = 666
- If it is not in your cron scheduler, add it and set a duration for whatever duration you would like to set it to
Your site map should then be set up and ready to go.
(Thanks to FBB Developer Josh Pettit and resident Code Monkey, Couchtomatoe, for this information!)