PHP Sitemap - Skip Parameters

Started by xray77, March 19, 2016, 14:34:24 PM

Previous topic - Next topic

xray77

Hello,

how can relative links add to $skip ?

Example, don't need in Sitemap links with parameters like

?sortby= (or some session-id's)

http://xyz.com/file.php
and also
http://xyz.com/file.php?sortby=

So I need at $skip array a relative URLs. If so, I can include parts of the url like "badwords"
Is there any placeholder possible like %:

    $skip = array (
"%?filter=&brands=",
                  );


Elmar

#1
Hello,

example for "sortby=":

in the file sitemap-1.0.php insert at line 163


     if (strpos ($next_url, "sortby=") !== false) $ignore = true;



Best regards
Elmar