Topic: Site Map

I am posting this here rather than in my other extension thread since this is more of a alpha/beta release.

I have never used a site map before so am iffy on what exactly it should contain. This has also only undergone minimal testing, and is still missing a few features, still has a couple loose ends that should be finished and a few bugs.

Edit: Removed link to avoid people downloading an old beta version. Check here for the current release.

I am mainly posting this to see if anyone with a slightly better knowledge of site maps can let me know what they think.

Last edited by Reines (2008-06-27 23:35:56)

Re: Site Map

robots.txt isn't required, although you can use it: personally, I submit my sitemaps to the search engines directly.

Re: Site Map

One possible problem I have ran into:

The location of a Sitemap file determines the set of URLs that can be included in that Sitemap. A Sitemap file located at http://example.com/catalog/sitemap.xml can include any URLs starting with http://example.com/catalog/ but can not include URLs starting with http://example.com/images/.

When using the folder based rewrite scheme the sitemap is located at domain.com/sitemap/ but would that not mean that only urls within domain.com/sitemap/ are allowed? In other words none?

Is there a better way to handle that, or will I need to just ignore the rewrite scheme and link to the "real" url (/misc.php?action=sitemap)?

Re: Site Map

Yup, you need to link to something forum-root level and while at it, meaningful smile

/sitemap-xml for example

Re: Site Map

I decided just to not rewrite requests to it, since it's pretty much only bots that will be reading it anyway, and just left it as misc.php?action=sitemap. Thanks

Re: Site Map

You could always rewrite it as sitemap.xml.

Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks

Re: Site Map

Reines wrote:

I decided just to not rewrite requests to it, since it's pretty much only bots that will be reading it anyway, and just left it as misc.php?action=sitemap.

Hypocrite. big_smile What happened to consistency? big_smile

Last edited by MattF (2008-06-28 15:25:44)

Screw the chavs and God save the Queen!

Re: Site Map

elbekko wrote:

You could always rewrite it as sitemap.xml.

Could do, dunno if that would be better or if having none at all is, since we can't have the "right" rules.

MattF wrote:

Hypocrite. big_smile What happened to consistency? big_smile

Not much option if being consistent means it doesn't work. tongue

Re: Site Map

You could also make a robots.txt file through rewriting tongue
Shouldn't be too hard to do, and have an admin area where you can directly edit it. Extensions would then be able to add stuff to it if necessary.

Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks

Re: Site Map

lol work on this! i need it for google and yahoo

Re: Site Map

raptrex wrote:

lol work on this! i need it for google and yahoo

I have released version 1.1.0 here. If you have url-rewriting enabled it will create sitemap.xml and robots.txt (ty for the idea elbekko), otherwise the sitemap will be located at misc.php?action=sitemap.

Let me know if you run into any problems, or anything needs fixing.

Re: Site Map

http://diablo3community.com/robots.txt
lol is this suppose to be displayed?

<b>Notice</b>:  Undefined index:  sitemap in <b>/home/raptrex/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code</b> on line <b>274</b><br />
Sitemap: http://diablo3community.com/

btw im using folder based fancy urls

mysitemap

<sitemapindex xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd">
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_main in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>220</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_userlist in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>226</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_users in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>230</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_forums in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>235</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_forum in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>254</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_forum in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>254</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_forum in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>254</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_forum in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>254</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_forum in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>254</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
−
<sitemap>
<br/>
<b>Notice</b>
:  Undefined index:  sitemap_forum in 
−
<b>
/home/user/domains/diablo3community.com/public_html/misc.php(594) : eval()'d code
</b>
 on line 
<b>254</b>
<br/>
<loc>http://diablo3community.com/</loc>
</sitemap>
</sitemapindex>

http://diablo3community.com/sitemap.xml

Last edited by raptrex (2008-06-29 03:44:33)

Re: Site Map

What SVN version are you using?

Re: Site Map

oh im using 1.3 beta 2...
k it works on the latest svn

Last edited by raptrex (2008-06-29 06:24:51)