sitemaps.XML causes error 404

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

sitemaps.XML causes error 404

Postby IPB_Refugee » Sun Aug 24, 2008 11:19 pm

Hi dcz,

I'm so frustrated! I'm pretty sure it's that creepy hoster! When I want to view example.com/sitemap.xml or example.com/sitemaps.xml or example.com/urltext.txt, I get a 404 error.

This is my .htaccess:

Code: Select all
RewriteEngine on

# Standarddomain definieren
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+)\.html$ /viewtopic.php?$1=$2 [L]
RewriteRule ^[a-z0-9-]+-f([0-9]+)\.html$ /viewforum.php?f=$1 [L]
RewriteRule ^[a-z0-9-]+-c([0-9]+)\.html$ /index.php?c=$1 [L]
RewriteRule ^[a-z0-9-]+-u([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ $1$4?$2=$3 [QSA,N]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^([a-zA-Z0-9_]+)\.html$ /$1.php [L]

########################################################
# GYM SITEMAPS AND RSS REWRITE RULES         #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# SitemapIndex
RewriteRule ^sitemaps\.(xml(\.gz)?)$ sitemap.php [L]
# Sitemap modules
RewriteRule ^([a-zA-Z0-9_-]+)-sitemap\.(xml(\.gz)?)$ sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^.+-gf([0-9]+)\.(xml(\.gz)?)$ sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^urllist\.(txt(\.gz)?)$ urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################
# SITEMAP SITE TXT
RewriteRule ^([a-zA-Z0-9_-]+)-gx-?(l|s)?-?(m)?\.(xml(\.gz)?)$ sitemap.php?xml=$1&$2&$3 [L]


I also tried it without

Code: Select all
# SITEMAP SITE TXT
RewriteRule ^([a-zA-Z0-9_-]+)-gx-?(l|s)?-?(m)?\.(xml(\.gz)?)$ sitemap.php?xml=$1&$2&$3 [L]


as this seems not to be in my installation file. And I also tried the version with /:

Code: Select all
# SitemapIndex
RewriteRule ^sitemaps\.(xml(\.gz)?)$ /sitemap.php [L]
# Sitemap modules
RewriteRule ^([a-zA-Z0-9_-]+)-sitemap\.(xml(\.gz)?)$ /sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^.+-gf([0-9]+)\.(xml(\.gz)?)$ /sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^urllist\.(txt(\.gz)?)$ /urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################
# SITEMAP SITE TXT
RewriteRule ^([a-zA-Z0-9_-]+)-gx-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /sitemap.php?xml=$1&$2&$3 [L]


When I deactivate URL-Rewriting, example.com/sitemap.php works without any problem. But as far as I know, I can't submit a .php file to Google. And the forum URLs also do not get rewritten when URL rewriting is off. (The topic URLs do get rewritten, caused by mgutt's MOD.)

Do you have an idea what I can have done wrong? Or should my friend (it's his board and he doesn't want to upgrade to Olympus yet) talk to his hoster?

Regards
Wolfgang
User avatar
IPB_Refugee
PR0
PR0
 
Posts: 82
Joined: Thu Jul 24, 2008 2:18 pm

Advertisement

Postby dcz » Wed Aug 27, 2008 9:59 am

Is it working with other urls ?

I know you tried, but since there is a slash in front of paths in rewriterules for the forum rewriterules, you should use on for the gym rewriterules as well.

I do not see any obvious reasons why this would not work.

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

Postby IPB_Refugee » Wed Aug 27, 2008 5:37 pm

Thank you, dcz!

Yes, the rewriting of the board URLs works very well. Just sitemaps.xml and urllist.txt causes error 404 - with and without the slash in front of paths in rewriterules. :(

I will talk to the hoster and report back.

Regards
Wolfgang
User avatar
IPB_Refugee
PR0
PR0
 
Posts: 82
Joined: Thu Jul 24, 2008 2:18 pm

Postby dcz » Thu Aug 28, 2008 8:22 am

I was talking about the other GYM urls, such as a forum sitemap ?

By the way, there is no problem if you submit sitemap.php to SEs, as long as the url listed in the sitemaps are correct (urls to the topics and forums).

++
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: 21219
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: No registered users and 1 guest