including urls with 307 redirect
« on: September 27, 2017, 09:58:25 AM »
Hey,

we have several internal links on our webpage which result in a 307 redirect. eg: https://www.test.com/download.shtml -> (307) https://server.test.com/download.shtml
since we don't want the server.test.com to appear in the sitemap, we added a canonical tag into the page https://server.test.com/download.shtml pointing to https://www.test.com/download.shtml as the canonical page

none of these URLs are added to the sitemap.
https://www.test.com/download.shtml (skipped because 307 redirect)
https://server.test.com/download.shtml (skipped because canonical points somewhere else)

i tired to add the urls using the <option name="xs_incl_urls">https://www.test.com/download.shtml</option> tag in the generator conf, but the URL is still skipped.

We want to add the https://www.test.com/download.shtml URLs, even it uses a 307. Its like a short URL pointing to another, possibly changing resource.

Any chance you can help us? We use the version 7.2.

Thanks
Re: including urls with 307 redirect
« Reply #1 on: September 27, 2017, 05:01:42 PM »
Hello,

you can add this in generator/data/generator.conf file:
<option name="xs_allow_httpcode">307</option>
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.
Re: including urls with 307 redirect
« Reply #2 on: September 29, 2017, 08:12:31 AM »
I already tried that with the option:
<option name="xs_allow_httpcode">200|307</option>
this didn't change anything
Re: including urls with 307 redirect
« Reply #3 on: September 29, 2017, 02:10:50 PM »
Please let me know an example URL that is not added in sitemap.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.
Re: including urls with 307 redirect
« Reply #4 on: September 29, 2017, 03:59:14 PM »
i send you a PM
Re: including urls with 307 redirect
« Reply #5 on: October 02, 2017, 10:02:41 AM »
have you found a solution to my problem?

Thanks for the update
Re: including urls with 307 redirect
« Reply #6 on: October 02, 2017, 03:41:26 PM »
Replied to your PM the same day. We would need access to the sitemap generator to be able to troubleshoot it.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.
Re: including urls with 307 redirect
« Reply #7 on: October 04, 2017, 10:46:42 AM »
Thanks, the issue is fixed