BiscoWeb / sitemapgen4j

Automatically exported from code.google.com/p/sitemapgen4j
0 stars 0 forks source link

Cannot add URL which does not start with base URL #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

wsg.addUrl("http://www.facebook.com/[some FB user]");

What is the expected output? What do you see instead?

Stack trace:
        java.lang.RuntimeException: Url http://www.facebook.com/[some FB user] doesn't start with base URL http://www.[some host].com
    at com.redfin.sitemapgenerator.UrlUtils.checkUrl(UrlUtils.java:10)
    at com.redfin.sitemapgenerator.SitemapGenerator.addUrl(SitemapGenerator.java:59)
    at com.redfin.sitemapgenerator.SitemapGenerator.addUrl(SitemapGenerator.java:119)

What version of the product are you using? On what operating system?

sitemapgen4j-1.0.1.jar

OS: Windows 7

Please provide any additional information below.

I've never heard of a restriction where you are not allowed to include external 
links into your sitemap. In fact having external links is one of the criteria 
for Google's rating.

Original issue reported on code.google.com by gene.bez...@gmail.com on 1 Aug 2012 at 8:16