HOw to get xml sitemaps?

The GYM Sitemaps & RSS module for phpBB. Sitemaps and RSS feeds for Google Yahoo! and MSN Live, support, add ons etc ...

Moderator: Moderators

HOw to get xml sitemaps?

Postby mafiaWolf » Fri Jul 03, 2009 12:06 pm

Please tell me how to get the correct XML link to add to Search Engine like Google
mafiaWolf
 
Posts: 34
Joined: Thu Jun 04, 2009 2:28 am

Advertisement

Re: HOw to get xml sitemaps?

Postby Typo » Sat Jul 04, 2009 2:01 am

Use:
Code: Select all
sitemapindex.xml

Such as:
Code: Select all
http://www.example.com/sitemapindex.xml


:)

Typo
User avatar
Typo
phpBB SEO Team
phpBB SEO Team
 
Posts: 346
Joined: Sun Jan 18, 2009 11:33 am

Re: HOw to get xml sitemaps?

Postby mafiaWolf » Sat Jul 04, 2009 11:15 am

I just can use sitemapindex.php but with .xml it 's show the 404 error page
mafiaWolf
 
Posts: 34
Joined: Thu Jun 04, 2009 2:28 am

Re: HOw to get xml sitemaps?

Postby mafiaWolf » Sat Jul 04, 2009 11:00 pm

How to have .xml link?
mafiaWolf
 
Posts: 34
Joined: Thu Jun 04, 2009 2:28 am

Re: HOw to get xml sitemaps?

Postby Typo » Sun Jul 05, 2009 8:07 am

Sounds like you didn't setup your .htaccess.

If the phpBB SEO mod rewrites are installed, the .htaccess generator will automatically generate the required rewriterules
for GYM sitemaps & RSS. Just generate a new .htaccess once you have installed the module and implement it.

Manual install, in your phpBB's .htaccess add :

#####################################################
# GYM Sitemaps & RSS
# Global channels
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [QSA,L,NC]
# HTML Global news & map
RewriteRule ^(news|maps)/?(page([0-9]+)\.html)?$ /map.php?$1&start=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################

After (in there with the phpBB SEO mod rewrite, if not, just add at the end of the .htaccess) :

# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


And then add at the end of it :

#####################################################
# GYM Sitemaps & RSS
# MTML Module additional modes
RewriteRule ^(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$ /map.php?$2=$4&$1&start=$6 [QSA,L,NC]
# Main feeds & channels
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [QSA,L,NC]
# Module feeds
RewriteRule ^[a-z0-9_-]*-[a-z]+([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [QSA,L,NC]
# Module feeds without ids
RewriteRule ^([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [QSA,L,NC]
# Google SitemapIndex
RewriteRule ^sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 [QSA,L,NC]
# Module cat sitemaps
RewriteRule ^[a-z0-9_-]+-([a-z]+)([0-9]+)\.xml(\.gz)?$ /sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 [QSA,L,NC]
# Module sitemaps
RewriteRule ^([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################


With the proper path and slashes settings.
For example you could need to use something like :

# Module sitemaps
RewriteRule ^phpbb/([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ phpbb/sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]

instead of :

# Module sitemaps
RewriteRule ^([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]

and so on for all the rewriterules.


If your still confused:

If you have the 'Ultimate SEO URL' mod you can use the .htaccess generator, if not you need to create or edit a file called .htaccess and add the following lines into it. I will give you a generic example.

THE FOLLOWING IS A GENERIC EXAMPLE AND NOT GUARANTEED TO WORK IN ALL CASES.
Code: Select all
#####################################################
# You may need to un-comment the following lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
#####################################################
#####################################################
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [QSA,L,R=301]
#####################################################
#####################################################
# GYM Sitemaps & RSS
# Global channels
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [QSA,L,NC]
# HTML Global news & map
RewriteRule ^(news|maps)/?(page([0-9]+)\.html)?$ /map.php?$1&start=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################
#####################################################
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


#####################################################
#####################################################
# GYM Sitemaps & RSS
# MTML Module additional modes
RewriteRule ^(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$ /map.php?$2=$4&$1&start=$6 [QSA,L,NC]
# Main feeds & channels
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [QSA,L,NC]
# Module feeds
RewriteRule ^[a-z0-9_-]*-[a-z]+([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [QSA,L,NC]
# Module feeds without ids
RewriteRule ^([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [QSA,L,NC]
# Google SitemapIndex
RewriteRule ^sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 [QSA,L,NC]
# Module cat sitemaps
RewriteRule ^[a-z0-9_-]+-([a-z]+)([0-9]+)\.xml(\.gz)?$ /sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 [QSA,L,NC]
# Module sitemaps
RewriteRule ^([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################


Good luck.

Typo
User avatar
Typo
phpBB SEO Team
phpBB SEO Team
 
Posts: 346
Joined: Sun Jan 18, 2009 11:33 am

Re: HOw to get xml sitemaps?

Postby mafiaWolf » Sun Jul 05, 2009 11:44 am

Oh.....that is the .htaccess to change the php to xml of sitemap?
mafiaWolf
 
Posts: 34
Joined: Thu Jun 04, 2009 2:28 am

Re: HOw to get xml sitemaps?

Postby Typo » Sun Jul 05, 2009 11:32 pm

The edits make the sitemap.xml link available as well as enabling many other features of the GYM sitemap and rss system.

You NEED to follow all installation instructions when installing mods, especially from this site. The .htaccess edits are a standard part of the installation and should have been done.

Good luck.

Typo
User avatar
Typo
phpBB SEO Team
phpBB SEO Team
 
Posts: 346
Joined: Sun Jan 18, 2009 11:33 am

Re: HOw to get xml sitemaps?

Postby mafiaWolf » Mon Jul 06, 2009 3:51 pm

My current page is http://haclonghoi.co.cc/Chuyen/
and i 've installed seo mod 0.4.8 but don't use it...
What 's the .htaccess code?
mafiaWolf
 
Posts: 34
Joined: Thu Jun 04, 2009 2:28 am

Re: HOw to get xml sitemaps?

Postby Typo » Mon Jul 06, 2009 11:14 pm

Well we always recommend keeping your software up to date, the current version of our SEO URL mod and the GYM mod are 0.6.0 and the latest version of phpBB3 is 3.0.5.

Since you have the SEO URL Rewrite mod installed, you can go into the ACP and generate a new .htaccess using the .htaccess tool.

Good luck.

Typo
User avatar
Typo
phpBB SEO Team
phpBB SEO Team
 
Posts: 346
Joined: Sun Jan 18, 2009 11:33 am

Re: HOw to get xml sitemaps?

Postby dcz » Sat Jul 11, 2009 1:43 pm

Yes, start with updating your forum, and then just generate a new .htaccess with GYM installed, the required rewriterules will be added automatically in your .htaccess.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21411
Joined: Fri Apr 28, 2006 9:03 pm

Re: HOw to get xml sitemaps?

Postby ionny » Wed Feb 24, 2010 3:40 pm

dcz wrote:Yes, start with updating your forum, and then just generate a new .htaccess with GYM installed, the required rewriterules will be added automatically in your .htaccess.

++


hello, i have done everything, but i can't find this file or rss file

my .htaccess (httpwww.mydomain/forum/.htaccess , created manualy) is this:
Code: Select all
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
#####################################################
# You may need to un-comment the following lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
#####################################################
#####################################################
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [QSA,L,R=301]
#####################################################
#####################################################
# GYM Sitemaps & RSS
# Global channels
RewriteRule ^forum/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ forum/gymrss.php?channels&$2&$4&$6 [QSA,L,NC]
# HTML Global news & map
RewriteRule ^forum/(news|maps)/?(page([0-9]+)\.html)?$ forum/map.php?$1&start=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################
#####################################################
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


#####################################################
#####################################################
# GYM Sitemaps & RSS
# MTML Module additional modes
RewriteRule ^forum/(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$ forum/map.php?$2=$4&$1&start=$6 [QSA,L,NC]
# Main feeds & channels
RewriteRule ^forum/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ forum/gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [QSA,L,NC]
# Module feeds
RewriteRule ^forum/[a-z0-9_-]*-[a-z]+([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ forum/gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [QSA,L,NC]
# Module feeds without ids
RewriteRule ^forum/([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ forum/gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [QSA,L,NC]
# Google SitemapIndex
RewriteRule ^forum/sitemapindex\.xml(\.gz)?$ forum/sitemap.php?gzip=$1 [QSA,L,NC]
# Module cat sitemaps
RewriteRule ^forum/[a-z0-9_-]+-([a-z]+)([0-9]+)\.xml(\.gz)?$ forum/sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 [QSA,L,NC]
# Module sitemaps
RewriteRule ^forum/([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ forum/sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################


my phpbb3.0.6 is in http://www.mydomain.com/forum
how can i generate another .htacces file ?

Thank you.
ionny
 
Posts: 2
Joined: Wed Feb 24, 2010 3:25 pm

Re: HOw to get xml sitemaps?

Postby ionny » Wed Feb 24, 2010 4:01 pm

i forgot to install the gym .... :roll:

it's working, sorry. :?
ionny
 
Posts: 2
Joined: Wed Feb 24, 2010 3:25 pm


Return to GYM Sitemaps & RSS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google Adsense [Bot] and 6 guests