News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SEO sitemap and XML sitemap

Started by mkress, May 09, 2012, 09:15:24 PM

Previous topic - Next topic

maestrosite.ru

Why you load categories (getBoardIndex) for each HTTP-request? In case hidden links too. For example, action=help.
And...  why it in the themes hook???

in attach - Russian translation
First of all, sorry for my english. По-русски у меня получается значительно лучше.

Проблема на форуме? Сначала посмотрите лог ошибок вашего форума и лог ошибок сайта (error_log)

You can try other modifications - see demo

GL700Wing

I've just installed the latest version of this mod on a brand new SMF 2.0.2 forum and whenever I click on the 'Move Topic' button that appears at the bottom of a topic multiples of each pair of the following error messages are logged:

http://leslies.id.au/forum/index.php?action=movetopic;topic=1.0
8: Undefined index: child_level
File: /home/lesliesi/public_html/forum/Themes/default/MoveTopic.template.php (main sub template - eval?)
Line: 42

http://leslies.id.au/forum/index.php?action=movetopic;topic=1.0
8: Undefined index: selected
File: /home/lesliesi/public_html/forum/Themes/default/MoveTopic.template.php (main sub template - eval?)
Line: 42


See attached.
Life doesn't have to be perfect to be wonderful ...

alpheus

I use Pretty Url. Which Codes that I put into my .htaccess please?

Bugo


mrintech

Hi,

The format of an XML sitemap is as follows:

Quote
<url>
<loc>http://abc.com/xyz/</loc>
<lastmod>2012-07-17T13:45:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>

I am not 100% sure, but I think your sitemap is HTML sitemap, not XML.

Ghostaunt

There are issues with section which don't have any posts but where there are sub-board

Google say : "XML missing" For this xml : http://www.team-exodia.fr/forum/index.php?board=100.0&action=kitsitemap;xml [nofollow]
It's this board : http://www.team-exodia.fr/forum/index.php?board=100.0 [nofollow]

Ghostaunt

Hello, nobody for this issue please ?

mrintech

Quote from: Ghostaunt on August 07, 2012, 03:26:32 PM
There are issues with section which don't have any posts but where there are sub-board

Google say : "XML missing" For this xml : http://www.team-exodia.fr/forum/index.php?board=100.0&action=kitsitemap;xml
It's this board : http://www.team-exodia.fr/forum/index.php?board=100.0

you need to post some threads/topics for sitemap to appear :)

mrintech

Quote from: mrintech on August 06, 2012, 10:56:09 AM
Hi,

The format of an XML sitemap is as follows:

Quote
<url>
<loc>http://abc.com/xyz/</loc>
<lastmod>2012-07-17T13:45:45+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>

I am not 100% sure, but I think your sitemap is HTML sitemap, not XML.

I take my words back :( Sorry  :-\

The MOD definitely creates a XML sitemap. All we need to enter ;xml to view the xml sitemap for any particular board:

Quoteabc.com/index.php?board=100.0&action=kitsitemap;xml

:)

Ghostaunt

Quote from: mrintech on August 09, 2012, 07:33:14 PM
Quote from: Ghostaunt on August 07, 2012, 03:26:32 PM
There are issues with section which don't have any posts but where there are sub-board

Google say : "XML missing" For this xml : http://www.team-exodia.fr/forum/index.php?board=100.0&action=kitsitemap;xml [nofollow]
It's this board : http://www.team-exodia.fr/forum/index.php?board=100.0 [nofollow]

you need to post some threads/topics for sitemap to appear :)

Hello thanks for your help, but this section doesn't need any post. I have them in subs sections

mrintech

Quote from: Ghostaunt on August 10, 2012, 07:19:49 AM
Quote from: mrintech on August 09, 2012, 07:33:14 PM
Quote from: Ghostaunt on August 07, 2012, 03:26:32 PM
There are issues with section which don't have any posts but where there are sub-board

Google say : "XML missing" For this xml : http://www.team-exodia.fr/forum/index.php?board=100.0&action=kitsitemap;xml
It's this board : http://www.team-exodia.fr/forum/index.php?board=100.0

you need to post some threads/topics for sitemap to appear :)

Hello thanks for your help, but this section doesn't need any post. I have them in subs sections

I think the MOD developer can help you

As far as I can say, this plugin can insert URLs in the XML sitemap only when threads/topics are present :)

mkress

I will submit an updated version in the next days.

Ghostaunt

Quote from: mkress on August 10, 2012, 12:43:02 PM
I will submit an updated version in the next days.
You are the best ;). I've tried to change this issue, but don't know how to work smf so thanks again :)

mkress

please uninstall the current version and install newest version (2.2.1) from  http://custom.simplemachines.org/mods/index.php?mod=3393

Ghostaunt


Ghostaunt

Same error I think it's because we have any xml tags into the <urlset> tag.
I think you must don't generate the xml if there is any data

mkress

@maestrosite.ru I have optimized the use of getBoardIndex - thanks for your suggestion.
will include russian translation in next version.

mkress

you only have to submit the xml index-file to google:
...forum/index.php?action=kitsitemap;xml

it is not necessary to include every single board, because boards are included in the index file....

mrintech

Hi mkress,

I have recently started using your MOD and it's very useful. Thanks a lot :)

I need your help with following:

I am using Pretty URLs Mod and my normal sitemap ( http://examdunia.com/index.php?action=kitsitemap ) have links which Pretty URLs set for my Boards and Topics. But, the XML Sitemap ( http://examdunia.com/index.php?action=kitsitemap;xml ) have default SMF URLs, instead of Pretty URLs!!!

Is it possible to have Pretty URLs in the XML Sitemap as well, for all boards?

Please help

Thanks a lot :)

streetdj

Hi,

First of all thanks for the mod. It seems very useful.

I have the same problem like everyone. Google does'nt understand XML.

I added to google like: .../index.php?action=kitsitemap;xml
google says OK but it shows this:
(This XML file does not appear to have any style information associated with it. The document tree is shown below.
(<sitemapindex xmlns="....sitemaps.org/schemas/sitemap/0.9">)
<sitemap>
<loc>
(livingist.com/index.php?board=3.0&action=kitsitemap;xml)
</loc>
</sitemap>
<sitemap>
<loc>
(livingist.com/index.php?board=2.0&action=kitsitemap;xml)
</loc>
</sitemap>
</sitemapindex>

Also I linked them from htaccess like;
#Sitemap .XML
RewriteEngine on
RewriteRule ^sitemap.xml$ ./index.php?action=kitsitemap;xml [L,QSA]

Btw, should I correct my robots.txt from sitemap.xml to /index.php?action=kitsitemap

Waiting your comments.
Thanks,

Advertisement: