24 May 2013 
Support Center » Knowledgebase » Adding Site Map Functionality to Your Site
 Adding Site Map Functionality to Your Site
Article
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.


  1. Copy site_index.xml to the doc root of your website and set it to 666.

  2. 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
    #
    #############################

  3. 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.)

  4. Set any forums you want to site map to enabled in:

    AdminCP >> Portal >> Manage RSS Channels

  5. 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 






  6. 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


  7. 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!)





Article Details
Article ID: 50
Created On: 10 Nov 2008 6:51 PM

 This answer was helpful  This answer was not helpful

 Back
 Login  
Email Address:
Password:
Remember Me:
 
 Search
 Article Options
Home | Submit a Ticket | Knowledgebase | Downloads
Language:

Help Desk Software by Kayako eSupport v3.30.02