ich habe mal wieder ein kleines Problem.
Habe ein phpBB3.0.5 und gymsitemaps für google installiert.
nun möchte ich über http://viktor123.menkisys.org/forum/sitemapindex.xml
die sitemap aufrufen die eigentlich unter http://viktor123.menkisys.org/forum/sitemap.php liegt.
Das ganze soll wohl über mod rewrite gehen aber irgendwie klappt da sbei mri nicht so ganz. bekomme immer den fehler :
Not Found
The requested URL /sitemap.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
hier mal die .htaccess auf dem phpbb (forum/)
Code: Alles auswählen
RewriteEngine on
RewriteCond %{REQUEST_URI} /forum/sitemap.xml
RewriteRule (.*) /forum/google-sitemap.php [L]
RewriteCond %{REQUEST_URI} /forum-([0-9]+).xml
RewriteRule (.*) /google-sitemap.php?fid=%1 [L]
#if forum is in /forum/ replace with RewriteBase /forum/
RewriteBase /forum/
RewriteRule ^(.*)-f([0-9]*)/(.*)-t([0-9]*)-s([0-9]*).html viewtopic.php?f=$2&t=$4&start=$5&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*)/(.*)-t([0-9]*).html viewtopic.php?f=$2&t=$4&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*)/index-s([0-9]*).html viewforum.php?f=$2&start=$3&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*)/ viewforum.php?f=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*) viewforum.php?f=$2&%{QUERY_STRING} [L]
# Redirect GYM 1.x RSS Feeds
# Mais feeds
RewriteRule ^rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /gymrss.php?$1&$2&gym1x=1 [L,NC]
# Redirect GYM 1.x RSS all
RewriteRule ^([a-z0-9_-]+)-rss([0-9]*)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /gymrss.php?$1=$2&$3&$4&gym1x=1 [L,NC]
# Redirect GYM 1.x RSS forum topics
RewriteRule ^([a-z0-9_-]+)-rf([0-9]+)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /gymrss.php?forum=$2&$3&$4&gym1x=1&gymtitle=$1 [L,NC]
# END Redirect GYM 1.x RSS Feeds
# GYM Sitemaps & RSS
# Global channels
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [QSA,L,NC]
# HTML Global news & map
RewriteRule ^(news|maps)/?(page([0-9]+)\.html)?$ /map.php?$1&start=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
# GYM Sitemaps & RSS
# MTML Module additional modes
RewriteRule ^(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$ /map.php?$2=$4&$1&start=$6 [QSA,L,NC]
# Main feeds & channels
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [QSA,L,NC]
# Module feeds
RewriteRule ^[a-z0-9_-]*-[a-z]+([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [QSA,L,NC]
# Module feeds without ids
RewriteRule ^([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [QSA,L,NC]
# Google SitemapIndex
RewriteRule ^sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 [QSA,L,NC]
# Module cat sitemaps
RewriteRule ^[a-z0-9_-]+-([a-z]+)([0-9]+)\.xml(\.gz)?$ /sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 [QSA,L,NC]
# Module sitemaps
RewriteRule ^([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>