Gym sitemap .htaccess

The GYM Sitemaps and RSS module and it's plug-ins.
Google Yahoo MSN Sitemaps (United 0.9).
RSS 2.0 Feeds and Yahoo! urllist.txt.

Moderator: Moderators

Postby amthekkel » Thu Jan 25, 2007 7:03 pm

hi,

I have installed the new module gym sitemaps and when i submitted the url to google it shows the status as ok. I tried going to http://www.dance.abdn2day.co.uk/forum/sitemaps.xml it shows a listing of 10 sitemaps but if i click on any of them i get the following error, would this be a problem even though google webmasters indicate the sitemap status as ok??
The requested URL /forum/forum-sitemap.xml was not found on this server.


also the home variable on sitemaps.xml is showing as www.dance.abdn2day.co.uk. i dont have anything on there. I have changed the
$phpbb_root_path = ''/[my server home details]/dance.abdn2day.co.uk/user/htdocs/forum/';


and
$paths['sitemap_url'] = 'http://www.dance.abdn2day.co.uk/forum/';


in all three files ie sitemap.php, urllist.php and rss.php

all these files reside in www.dance.abdn2day.co.uk/forum/

thanks for your help in advance
amthekkel
 
Posts: 4
Joined: Thu Jan 25, 2007 5:04 pm

Advertisement

Postby dcz » Fri Jan 26, 2007 1:49 pm

So several things :

For the home link, you cannot change it like you suggested. Its build out with JS, within the ggs_style/mxgss.xsl file.

Actually, all the html output is build out the xml one, and the united sitemaps protocol is quite simple so we do not have many info in there. Look at the source code ;)

So you could open ggs_style/mxgss.xsl and find :
Code: Select all
      theURL.innerHTML += 'Home : <a href="http://' + location.host + '/" title="Back to home" />' + location.host +'</a>';


And replace with (what you want actually ;)) :
Code: Select all
      theURL.innerHTML += 'Home : <a href="http://' + location.host + '/forum/" title="Back to home" />' + location.host +'</a>';


for example.


Then, for the 404, it's just that you need to implement the rewrtierules provided in the install.

In order to allow the use of the rewritten module link.

this is only possible if your server uses mod_rewrtie module.

So far, the vanilla urls works -http://www.dance.abdn2day.co.uk/forum/sitemap.php?forum
but you set up the module to output rewritten links for the forum and you did not install any mod rewrite on it, so same issue, links are 404.

I suggest you set mod rewrite to none in acp for the forum, at least until you install a mod rewrite for it.

You can as well turn mod rewrtie of for sitemaps, just to be able to browse all file until you implement the rewriterules as advised in the install.

++
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: 21383
Joined: Fri Apr 28, 2006 9:03 pm

Postby amthekkel » Sat Jan 27, 2007 11:40 am

Hi Dcz,

I am slightly confused now. I actually had edited the .htaccess and put the required rewrite rules in. Is there anything else that needs to be done to add the rewrite mod???

As per your advice, i turned of the mixed mod rewrite in the acp to none, now google is reporting problems with my sitemaps:( the url not found, so i am guessing that i had the required files earlier but need to tweak them around a bit i guess. Could you have a look at the following sections from my .htaccess and sitemap.php file so i know where i am going wrong , thanks a lot.

.htacess file , one thing i need to know is whether rewrite rule should be as
RewriteRule ^^sitemaps\.([xml|xml\.gz]+)$ /sitemap.php [L]
or
RewriteRule ^forum/^sitemaps\.([xml|xml\.gz]+)$ /forum/sitemap.php [L]

All my files, including sitemap.php,rss.php,urllist.php are in the forum directory. ie htdocs/forum/ Follwing is my .htaccess file, it still has the old mx google sitemap rewrite rules just incase it was requied

#########################################################
# MX GG_SITEMAPS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.forum-seo.com/
# STARTED : 2006/02/22
########################

#Options +FollowSymlinks
RewriteEngine on
RewriteBase /

########################################################
# forum
#RewriteRule ^sitemaps.xml$ /sitemap.php [L]
#RewriteRule ^forum-sitemap-([0-9]+).xml$ /sitemap.php?fid=$1 [L]
#RewriteRule ^sitemap-forum.xml$ /sitemap.php?forum [L]
RewriteRule ^sitemaps.xml$ /forum/sitemap.php [L]
RewriteRule ^forum-sitemap-([0-9]+).xml$ /forum/sitemap.php?fid=$1 [L]
RewriteRule ^sitemap-forum.xml$ /forum/sitemap.php?forum [L]
# mxBB
RewriteRule ^mx-sitemap.xml$ /sitemap.php?mx [L]
# KB
RewriteRule ^kb-sitemap-([0-9]+).xml$ /sitemap.php?kbid=$1 [L]
RewriteRule ^sitemap-kbcat.xml$ /sitemap.php?kbcat [L]

#########################################################
# END GG_SITEMAPS REWRITE RULES #
#########################################################
#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.forum-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /forum/rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /forum/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /forum/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /forum/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^sitemaps\.([xml|xml\.gz]+)$ /forum/sitemap.php [L]
# Sitemap modules
RewriteRule ^([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ /forum/sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^.+-gf([0-9]+)\.([xml|xml\.gz]+)$ /forum/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^urllist\.([txt|txt\.gz]+)$ /forum/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES #
##################################################
#######



this is a portion of my sitemap.php i need help with
$phpbb_root_path = './forum/';

$paths['sitemap_url'] = 'http://www.dance.abdn2day.co.uk/forum/';


could you tell me if these two variables are set to the right value.

Once again, many thanks for ur help.

regards
amthekkel
amthekkel
 
Posts: 4
Joined: Thu Jan 25, 2007 5:04 pm

Postby dcz » Sat Jan 27, 2007 11:54 am

So, if sitemap.php is in the forum/ folder :

Code: Select all
$phpbb_root_path = './';

$paths['sitemap_url'] = 'http://www.dance.abdn2day.co.uk/forum/';


Is correct, but you might want to move it up to root, and use :


Code: Select all
$phpbb_root_path = './forum/';

$paths['sitemap_url'] = 'http://www.dance.abdn2day.co.uk/';


First path is path to phpBB installation, starting from where sitemap.php is located, the second one it the url to the folder wher the sitemap.php file is installed.

Same thing apply for rss.php and urllist.php.

So with sitemap.php (and the same with rss.php and urllist.php) at the root level, your .htaccess should look like :


Code: Select all
RewriteEngine on
RewriteBase /
#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.forum-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /forum/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /forum/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^sitemaps\.([xml|xml\.gz]+)$ /sitemap.php [L]
# Sitemap modules
RewriteRule ^([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ /sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^.+-gf([0-9]+)\.([xml|xml\.gz]+)$ /sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^urllist\.([txt|txt\.gz]+)$ /urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES #
##################################################
#######


And work nice ;)

I advise you to unregister you sitemap at Google, and to re submit once everything is done.

By the way, you're now outputting the correct vanilla url for you board : -http://www.dance.abdn2day.co.uk/forum/sitemap.php?forum

++
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: 21383
Joined: Fri Apr 28, 2006 9:03 pm


Return to GYM Sitemaps phpBB2

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Bing [Bot] and 2 guests