Results 1 to 7 of 7

Sitemap URL returns 404

This is a discussion on Sitemap URL returns 404 within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; Hello all, I have just moved my site from one server to another and have discovered that on the new ...

  1. #1
    Senior Member
    Real Name
    mreyes
    Join Date
    May 2008
    Posts
    125
    Liked
    3 times

    Sitemap URL returns 404

    Hello all,

    I have just moved my site from one server to another and have discovered that on the new server the sitemap URL is returning a 404 not found page.

    The only real difference between the original and new server is that I was using the Helicon Rewrite Lite isapi plugin, on the new server I am using the IIS7 rewrite module.

    Via ACP I can generate the sitemap files without any issues and the GZ files are successfully written to "/vbseo_sitemap/data/".

    So I assume this is an issue with my web config file, so here it is:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
    		<urlCompression doDynamicCompression="true" />
            <rewrite>
                <rules>
    				<rule name="Redirect to WWW" stopProcessing="true">
    		          <match url=".*" />
    		          <conditions>
    		            <add input="{HTTP_HOST}" pattern="^mysite.com$" />
    		          </conditions>
    		          <action type="Redirect" url="http://www.mysite.com/{R:0}" redirectType="Permanent" />
    		        </rule>
    				<rule name="wordpress" patternSyntax="Wildcard">
    					<match url="*" />
    					<conditions>
    						<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    						<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    					</conditions>
    					<action type="Rewrite" url="index.php" />
    				</rule>
                    <rule name="Imported Rule 1" enabled="true" stopProcessing="true">
                        <match url="^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$" ignoreCase="false" />
                        <action type="Rewrite" url="vbseo_sitemap/vbseo_getsitemap.php?sitemap={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 2" enabled="true" stopProcessing="true">
                        <match url="^((archive/)?(.*\.php(/.*)?))$" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAll">
                            <add input="{URL}" negate="true" pattern="(admincp/|modcp/|cron|vbseo_sitemap)" ignoreCase="false" />
                        </conditions>
                        <action type="Rewrite" url="vbseo.php" appendQueryString="true" />
                    </rule>
                    <rule name="Rewrite All" enabled="true" stopProcessing="true">
                        <match url="^.*$" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAll">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                            <add input="{REQUEST_FILENAME}" negate="true" pattern="/(admincp|modcp|clientscript|cpstyles|images)/" ignoreCase="false" />
                        </conditions>
                        <action type="Rewrite" url="vbseo.php" appendQueryString="true" />
                    </rule>
                </rules>
            </rewrite>
            <httpErrors>
                <remove statusCode="404" subStatusCode="-1" />
                <error statusCode="404" subStatusCode="-1" prefixLanguageFilePath="" path="/404.php" responseMode="ExecuteURL" />
            </httpErrors>
        </system.webServer>
    </configuration>

  2. #2
    Senior Member
    Real Name
    mreyes
    Join Date
    May 2008
    Posts
    125
    Liked
    3 times
    Actually, scratch that comment about sitemaps being generated successfully

    When I run the sitemap generator via the ACP link, I get a 500 error - if I run from ACP scheduled jobs I see a log entry saying that it has started but no other log entry.

    In the data folder I can see a new file called sitemap_1.xml.gz but no others, normally there are files 1 through to 4 and the main gz file.

    BTW this is Sitemap Generator 2.2 and vb 3.8 - I will get around to upgrading sometime soon

  3. #3
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    PLease try sitemap 2.5. 2.2 is no longer supported and is simply outdated for vb 3.8.

  4. #4
    Senior Member
    Real Name
    mreyes
    Join Date
    May 2008
    Posts
    125
    Liked
    3 times
    Rightio, just upgraded to 2.5 - It was something that I should have done months ago.

    When running the "Run Sitemap" generator link in ACP -> VBSEO -> vBSEO Sitemap Reports I am still getting a 500 error. At first I thought this might be PHP execution time but the 500 error sometimes occurs after 20 seconds and sometimes after almost 2 minutes.

    The web.config is still as posted above
    The vbseo_sitemap directory (and all children) and set to full control for authenticated users (this is a dedicated server so this isn't an issue from a security POV)
    I am seeing files being generated in vbseo_sitemap/data

    err, can't think of anything else.

  5. #5
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Can you check your error logs to see what the actual error is behind the 500?

  6. #6
    Senior Member
    Real Name
    mreyes
    Join Date
    May 2008
    Posts
    125
    Liked
    3 times
    Yeah, thats an odd one - the error logs don't contain any further information - it just logs the usual request information with a status code of 500 and no other information

  7. #7
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Please open a ticket with login details and password to the sitemap so we can take a look.

Similar Threads

  1. domain.com/sitemap_index.xml.gz returns 404
    By StarBuG in forum Troubleshooting
    Replies: 14
    Last Post: 06-05-2008, 09:25 AM
  2. config_vbseo.php returns blank screen
    By dodjer420 in forum Troubleshooting
    Replies: 1
    Last Post: 03-05-2007, 07:08 PM
  3. custom 404 Error Doc returns 200 OK
    By rob in forum Troubleshooting
    Replies: 5
    Last Post: 05-29-2006, 04:18 PM
  4. Profile with username I_luv_HP&trq returns no user exists
    By BamaStangGuy in forum Bug Reporting
    Replies: 1
    Last Post: 11-11-2005, 05:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •