|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Google SItemaps problem
On my website I ahve put a sitemap, located at www.domain.com/sitema.xml, and i have submitted this to google, however when it donwloads the file it tells me there is an error which is: URL not under Sitemap path.
What does this mean and how do I fix it? Thanks.
__________________
- lucas
The sixth sick sheik's sixth sheep's sick ![]() "People will believe anything if you whisper it..." 0100010001101001011001000010000001111001011011110111010100100000011001010110111001101010011011110111 1001001000000111010001101000011000010111010000111111001000000111011101110111011101110010111001101101 011101010110110001101111001011100110001101101111001011100111010101101011 |
|
#2
|
||||
|
||||
|
Quote:
1) Make sure to change the file name to sitemap.xml 2)What does your sitemap.xml file have listed? Usually the error you reported comes when you have a URL listed in your sitemap file that doesn't exist in that folder or subdirectory. The best way I have found to format a Google sitemap file is as follows (feel free to copy & paste this code and save as sitemap.xml and place in your ROOT directory next to your index page): Code:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>http://www.yourdomain.com/</loc>
<lastmod>2005-11-27</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
</urlset>
Between the <loc> tags: Replace with your website address. Between <lastmod> tags: Replace with todays date; and then change when ever you update your website's content. [EDIT]Also, in your Google Sitemaps account, be sure to have your website verified if you haven't already, or Google won't give you their crawls stats...[/EDIT]
__________________
PWD MCSE, MCSA, MCP, Security+ NEW Windows Administration Forum Admin Source ![]() Could REALLY, REALLY, REALLY use you and your issues! Last edited by PWD : January 2nd, 2006 at 11:58 PM. |
|
#3
|
||||
|
||||
|
Basically my site mpa looks like this
<url> <loc>http://www.domain.com/page.php</loc> <lastmod>2005-12-30T04:52:03-06:00</lastmod> <changefreq>weekly</changefreq> <priority>0.5</priority> </url> I use phpSitemapNG with a cron job to automatically generate and submit this sitemap to google. Currently sitemaps isnt actually showing any errors, but that might just be because the site hasn't been crawled yet. Thanks for your input. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Search Engine Optimization > Google SItemaps problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|