| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 205
|
Posted: Sat May 10, 2008 11:53 am Post subject: Sitemap error |
|
|
This is not a problem with the GYM sitemap, it is a problem that has occured when my site was moved to a new server.
The sitemap was working brilliantly and is an excellent mod!
Now that the site is on a new server the sitemap is showing a 404 error
| Code: | Not Found
The requested URL /forum1/sitemaps.xml was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5 Server at www.ultimatehandyman.co.uk Port 80 |
There is a webmaster that helps me with the forum mods and so he might fix it when he fixes a few other problems, but if he can't does anyone know how to fix this?
Thanks
chez |
_________________ DIY | DIY directory |DIY forum |
|
| Back to top |
|
 |
|
 |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 205
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 205
|
Posted: Wed May 14, 2008 8:03 pm Post subject: Re: Sitemap error |
|
|
Thanks dcz,
The sitemap.php is in the forum1 directory.
When the forum was moved I had a couple of mods installed, one of these was a mod to ignore users, this conflicted with the .htaccess file and so it was edited or else the new mod would not work.
This is the file-
| Code: | # You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum1/index\.html$ /forum1/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^forum1/[a-z0-9_-]*/([^/]+\.html)$ /forum1/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forum1/[a-z0-9_-]*-c([0-9]+)\.html$ /forum1/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum1/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forum1/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum1/[a-z0-9_-]*-f([0-9]+)\.html$ /forum1/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum1/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /forum1/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum1/[a-z0-9_-]*-t([0-9]+)\.html$ /forum1/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum1/post([0-9]+)\.html$ /forum1/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum1/member([0-9]+)\.html$ /forum1/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
Thanks very much in advance  |
_________________ DIY | DIY directory |DIY forum |
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3103
|
Posted: Thu May 15, 2008 8:55 am Post subject: Re: Sitemap error |
|
|
All right, so you miss all the GYM rewriterules.
Add this at the end of your .htaccess, should work right away :
| Code: | #########################################################
# GYM SITEMAPS AND RSS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^forum1/rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum1/rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^forum1/forums-rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum1/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^forum1/([a-zA-Z0-9_-]+)-rss([0-9]*)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum1/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^forum1/.+-rf([0-9]+)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum1/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^forum1/sitemaps\.(xml(\.gz)?)$ /forum1/sitemap.php [L]
# Sitemap modules
RewriteRule ^forum1/([a-zA-Z0-9_-]+)-sitemap\.(xml(\.gz)?)$ /forum1/sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^forum1/.+-gf([0-9]+)\.(xml(\.gz)?)$ /forum1/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^forum1/urllist\.(txt(\.gz)?)$ /forum1/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES #
######################################################### |
 |
_________________
|
|
| Back to top |
|
 |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 205
|
Posted: Thu May 15, 2008 4:24 pm Post subject: Re: Sitemap error |
|
|
Thanks very much
The sitemap is now back where it should be.
Thanks again  |
_________________ DIY | DIY directory |DIY forum |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |