Halfagain IM Forums
May 24, 2012, 12:37 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Due to increasing spam we are forced to make this forum "Read Only". If you have an issue, most likely was discussed here. Use the Search function and try to find related discussions. If you can't find any helpful information, just email support at halfagain dot com"
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Automatic Sitemap Generator exclusively for BS3!  (Read 6191 times)
0 Members and 2 Guests are viewing this topic.
bsmaster
Newbie
*

Karma: 10
Offline Offline

Posts: 7


« on: October 23, 2007, 09:58 »

Hi all,

Install this little script if you are serious on making a xml sitemap for your BS3 sites to improve their SE position.

I have made it unZended so everyone can modify it to to suit your needs.

Requirement :

1) A BS3 system properly installed.
2) MySQL and PHP5.

Features:

This script is made to generate a tailored and updated xml sitemap for any BS3 site.

It will update your xml sitemap automatically once you add, delete or edit your blog. You do not have to make a generation by third party tool anymore.

It particularly suits those who will change their blog network frequently.


Installation:

1) Download it in the attachment and unzip it

2) Change the setting to suit your need.

3) Upload the whole 'sitemap' folder to the root directory to your BS3 sites. Don't rename it and don't put it elsewhere.

4) CHMOD the 'sitemap' folder into 777. The script need to write the sitemap.xml in this folder.

4.5) Add RewriteRule ^sitemap(.*)$ -[L] to your .htaccess file to make your sitemap.xml open for Google.
      (put RewriteRule ^sitemap(.*)$ -[L] before RewriteRule ^(.*)$ index.php [L] in your .htaccess file.)

5) Run the script in www.bs3site.com/sitemap/index.php

6) Now, a sitemap has been made. See www.bs3site.com/sitemap/sitemap.xml

7) Optionally, made a corn job for the index.php and let it run itself.

Cool Submit the sitemap.xml to google.

Now, sit down and never look at it, it will do the job for you!!

Enjoy!

BSMaster (not really)
« Last Edit: November 15, 2007, 05:40 by bsmaster » Logged
mapdaddy
Newbie
*

Karma: 10
Offline Offline

Posts: 12


« Reply #1 on: October 27, 2007, 06:00 »

Thanks a lot. Unfortunately, I got two different errors:

When running the script on
careers.business-accounting.net/sitemap/
I got the message
"Please make sure you put this script inside the 'sitemap' folder under the root directory."

Doesn't the script support subdomains?

When running the script on
www.giardia.no/sitemap/
I got the message
Fatal error: Call to undefined function: simplexml_load_file() in /home/.seance/harem/giardia.no/sitemap/index.php on line 99

Any ideas?

Otherwise -- thanks for the idea. I think a sitemap generator would be a mandatory feature in BS3, but obviously not.

What about outputting a sitemap.txt for Yahoo as well?
« Last Edit: October 27, 2007, 07:35 by mapdaddy » Logged
bsmaster
Newbie
*

Karma: 10
Offline Offline

Posts: 7


« Reply #2 on: October 27, 2007, 08:30 »

For your first question, just put the script under business-accounting.net
and it will generate a sitemap for all the blogs under the site.

For your second question, since simplexml_load_file() is a php5 built-in function,
I am sorry to tell you that you have to run the script under PHP5 environment.

To generate a sitemap.txt for Yahoo would definitely be a good idea, I will think about it.Thanks.
« Last Edit: October 27, 2007, 08:41 by bsmaster » Logged
was
Newbie
*

Karma: 10
Offline Offline

Posts: 5


« Reply #3 on: November 11, 2007, 13:23 »

I get the error

Please make sure you put this script inside the 'sitemap' folder under the root directory.

I am running it in the sitemap folder under the root directory.  The cron job string looks like:

/usr/bin/php /home/mydomain/public_html/sitemap/index.php

Ideas?

A
Logged
bsmaster
Newbie
*

Karma: 10
Offline Offline

Posts: 7


« Reply #4 on: November 11, 2007, 20:13 »

You can run the script like this:  www.domain.com/sitemap/
Not sub.domain.com/sitemap/

Please PM me your site URL if you are not willing to post it here.
It would be better for me to find out the problem.



Quote from: was
I get the error

Please make sure you put this script inside the 'sitemap' folder under the root directory.

I am running it in the sitemap folder under the root directory.  The cron job string looks like:

/usr/bin/php /home/mydomain/public_html/sitemap/index.php

Ideas?

A
Logged
agenta
Newbie
*

Karma: 10
Offline Offline

Posts: 3


Pm
« Reply #5 on: January 05, 2008, 14:36 »

hi BSmaster
i pm:ed you

great tool!
Logged
agenta
Newbie
*

Karma: 10
Offline Offline

Posts: 3


« Reply #6 on: January 05, 2008, 15:07 »

i am getting
Internal Server Error 500
when adding the line about sitemap you mention i readme.txt
any tips?
Logged
agenta
Newbie
*

Karma: 10
Offline Offline

Posts: 3


« Reply #7 on: January 05, 2008, 17:14 »

i sabotaged my .htaccess file in blogs 3 root dir...
tried getting it to work but had to erase all to get blog to work again..
anyone having the default to put in the file?

regards :confused:
Logged
AgentScott
AgentScott
Newbie
*

Karma: 10
Offline Offline

Posts: 12


« Reply #8 on: February 24, 2008, 12:09 »

I just bought BS3, doesn't it come with a site map creator for the new version?  

I'm new and finding a hosting company to install BS3 on.

Thanks
Logged
dacstyle
Newbie
*

Karma: 10
Offline Offline

Posts: 2


« Reply #9 on: February 28, 2008, 02:32 »

i have an error with google, he says i need to put my sitemap under the root
Logged
AgentScott
AgentScott
Newbie
*

Karma: 10
Offline Offline

Posts: 12


« Reply #10 on: February 28, 2008, 04:02 »

wow, I can't believe there's no sitemap with BS3.
Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #11 on: February 28, 2008, 10:17 »

BS it does have a sitemap but is not a google sitemap. Try yourdomain.com/export/
Logged
DAC
Newbie
*

Karma: 10
Offline Offline

Posts: 11


« Reply #12 on: February 28, 2008, 18:28 »

all needs google sitemap but this script does no work for that, google need the sitemap in the root, the directory /sitemap does not work :confused:
Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #13 on: March 03, 2008, 09:29 »

You need to edit htaccess to allow acess to other files/folder. Check this http://www.halfagain.com/knowledgebase/users/kb.php?id=10022&category_id=1&sid2=
Logged
DAC
Newbie
*

Karma: 10
Offline Offline

Posts: 11


« Reply #14 on: March 04, 2008, 20:20 »

i can acces to the /sitemap folder but google need the siteman in the root, if you put the sitemap in the /sitemap folder google does not slurp the files after the folder
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!