Google Sitemap Lite
ExpressionEngine 2, ExpressionEngine 3
Back to this add-on's main page
View Other Add-ons From Rein de Vries
preventing external links in Google sitemap XML
General
gerlag
|
Posted: 20 November 2014 09:15 AM |
|
|
|
My site uses some extral links, which is not allowed in the google sitemap
I’m using navee, to prevent that my external links are listed I added a minor tweak around line 394:
//format array if (strpos($val['link'],"/")==0){ // add local links only to sitemap $this->site_map[] = array( 'loc' => $this->_loc_escapes($val['link']), 'lastmod' => date('Y-m-d'), 'changefreq' => $this->changefreq, 'priority' => $this->prio ); }
This is for navee only, but I guess that the same trick can be used for the Structure/Taxonomy modules
|
|
|
Reinos
|
Posted: 20 November 2014 03:37 PM |
# 1
|
|
Developer
|
Thanks for sharing. Can you create a pull request on the Github project.
Thanks, Rein
|
|
|