Viewing 1 replies (of 1 total)
  • you’re pissed? That’s quite a way to start a post asking for help ??

    Nonetheless, I will help ??

    open sitemap-core.php.

    Go to line 284.

    You see this:

    $r.= "\t\t<loc>" . $this->EscapeXML($this->_url) . "</loc>\n";

    Change this one line to the following two lines:

    $hack_url = substr($this->_url,-1,1) == '/' ? substr($this->_url,0,-1) : $this->_url;
    $r.= "\t\t<loc>" . $this->EscapeXML( $hack_url ) . "</loc>\n";

    Hopefully this solution works and you won’t be “pissed” at me too. ??

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google XML Sitemaps] How do you remove trailing slashes from file?’ is closed to new replies.