Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Excluding external urls from the sitemap

I've improved your code in sitemap_xml.php inserting the following code underneath the unset() statement:

$pos = 0;
foreach($nav as $n) {
if ( count($n) > 1 ) {
if ( strpos( $n['location'], 'http') > -1 ) {

Stops external urls reaching the xml.

Sign In or Register to comment.