phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
sitemaps.XML causes error 404

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » GYM Sitemaps
::  
Author Message
IPB_Refugee
PR0
PR0


Joined: 24 Jul 2008
Posts: 53

sitemaps.XML causes error 404Posted: Sun Aug 24, 2008 11:19 pm    Post subject: sitemaps.XML causes error 404

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:
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:
# 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:
# 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
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sitemaps.XML causes error 404Posted: Wed Aug 27, 2008 9:59 am    Post subject: Re: sitemaps.XML causes error 404

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 || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
IPB_Refugee
PR0
PR0


Joined: 24 Jul 2008
Posts: 53

sitemaps.XML causes error 404Posted: Wed Aug 27, 2008 5:37 pm    Post subject: Re: sitemaps.XML causes error 404

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. Sad

I will talk to the hoster and report back.

Regards
Wolfgang
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sitemaps.XML causes error 404Posted: Thu Aug 28, 2008 8:22 am    Post subject: Re: sitemaps.XML causes error 404

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 || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » GYM Sitemaps
Page 1 of 1

Navigation Similar Topics

Jump to: