sitemap-glue.php.SAMPLE 1.26 KB
Newer Older
Bostjan Skufca committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
<?php



// Init your application
// ...



// Get current baseUri for your application instance
// either from database or from webserver environment ($_SERVER)
// ...



// Return BF Sitemap Generator configuration
return array(



    /*
     * SETTING:
     *     baseUri
     *
     * Base URI of your application, used for two things:
     *   - for generating absolute URIs in final sitemap.xml
     *   - default initial crawl url
     */
    'baseUri' => $baseUri,



    /*
     * SETTING:
     *     ignoreRegex
     *
     * Regular expression of URIs to ignore. Must include leading and trailing '/' character.
     * Leave as null if you do not use this feature.
     *
     * Example:
     *     '/language=/',
     */
    'ignoreRegex' => NULL,



    /*
     * SETTING:
     *     transDataFile
     *     transDataFileNew
     *
     * Transitional (cached) data from which final sitemap is generated.
     * It is also used as URI list seed for crawler.
     * The "*New" setting is the default destination file for crawler in order
     * to avoid loosing already-generated transData.
     */
    'transDataFile'    => __DIR__ .'/../path/to/app/config/sitemap-transData.yaml',
    'transDataFileNew' => __DIR__ .'/../path/to/app/config/sitemap-transData.yaml.new',
);