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

English |
French


