| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
IPB_Refugee PR0


Joined: 24 Jul 2008 Posts: 53
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
IPB_Refugee PR0


Joined: 24 Jul 2008 Posts: 53
|
Posted: 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.
I will talk to the hoster and report back.
Regards
Wolfgang |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |