forked from jdevalk/XML-Sitemap-PHP-Script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-sample.php
34 lines (25 loc) · 1.16 KB
/
config-sample.php
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
<?php
/**
* Change the configuration below and rename this file to config.php
*/
/*
* The directory to check.
* Make sure the DIR ends ups in the Sitemap Dir URL below, otherwise the links to files will be broken!
*/
define( 'SITEMAP_DIR', './' );
// With trailing slash!
define( 'SITEMAP_DIR_URL', 'http://www.example.com/' );
// Whether or not the script should check recursively.
define( 'RECURSIVE', true );
// The file types, you can just add them on, so 'pdf', 'php' would work
$filetypes = array( 'php', 'html', 'pdf' );
// The replace array, this works as file => replacement, so 'index.php' => '', would make the index.php be listed as just /
$replace = array( 'index.php' => '' );
// The XSL file used for styling the sitemap output, make sure this path is relative to the root of the site.
$xsl = 'xml-sitemap.xsl';
// The Change Frequency for files, should probably not be 'never', unless you know for sure you'll never change them again.
$chfreq = 'never';
// The Priority Frequency for files. There's no way to differentiate so it might just as well be 1.
$prio = 1;
// Ignore array, all files in this array will be: ignored!
$ignore = array( 'config.php' );