Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6388689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:18:36+00:00 2026-05-25T03:18:36+00:00

Within a robots.txt file, would be possible to use a relative path instead of

  • 0

Within a robots.txt file, would be possible to use a relative path instead of an absolute one for pointing out a Sitemap?

Sitemap: http://www.example.com/sitemap.xml

instead:

Sitemap: sitemap.xml

Curiose note SO robots.txt

#
# this technically isn't valid, since for some godforsaken reason 
# sitemap paths must be ABSOLUTE and not relative. 
#
Sitemap: /sitemap.xml
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:18:36+00:00Added an answer on May 25, 2026 at 3:18 am

    The official sitemap documentation shows a complete URL in its example of including a reference to an XML sitemap location.

    Sitemap: http://www.example.com/sitemap-host1.xml
    

    However, it does not specify whether or not a complete URL or absolute path must be used. The StackOverflow robots.txt implies that an absolute path is required and that they had issues when they used a relative path. So it is probably best to use a complete URL or absolute path if you want to be certain that search engines find your sitemap. Since this is very easy to do I don’t see any reason why a relative should be used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Within a rake task how does one query the description? Something that would give:
Within Ruby on Rails applications database.yml is a plain text file that stores database
Within an n-tier app that makes use of a WCF service to interact with
I have a site with the following robots.txt in the root: User-agent: * Disabled:
Within the following method, I would like to access any optional arguments that are
Within my application I would like to have a dialog box or a form
Within my application I would like to show a web page within a view
Within ASP.Net 4.0 is it possible to increase the vertical spacing between the errors\warnings
Within the /etc/hosts file you can block traffic via ## # Host Database #
Within an ASPX page, I would like to have the popup shown within the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.