• I’m trying to make a sitemap for my wordpress site here and I keep getting an error when trying to view it, go here to see what I mean: http://pinkfloydonline.com/sitemap.xml

    At first I thought it must be an issue with the sitemap.xml file itself, but then I just signed for Bing Webmaster Tools, and asked me to upload a verifysiteownership.xml file – and even this file couldn’t be viewed.

    So that leads me to believe I’m having an issue viewing ANY .xml file, for some reason, not just my sitemap.xml.

    Could this be something wrong with my server settings or .htaccess? Here is my .htaccess file:

    AddHandler phpCGI .xml .php
    Action phpCGI /cgi-bin/php5fcgi
    # for php5 and securewebexchange
    <IfDefine SSL>
            AddHandler phpCGI .xml .php
        Action phpCGI https://www.securewebexchange.com/pinkfloydonline.com/cgi-bin/php5fcgi
    </IfDefine>
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
Viewing 1 replies (of 1 total)
  • I believe, but am not 100% sure that this is accurate. It looks like you are pushing the .xml pages through PHP. That means your .xml files will have to be written in PHP and echo .xml. Is that how you have it organized?

    If it were me, I’d remove those .xml parts from the ‘AddHandler’ lines and see if you can get an .xml file to display. My guess is that PHP is getting a parse error on your .xml.

    You should paste your code to the pastebin. That is greater than 10 lines. It will be removed by a mod in very short order.

Viewing 1 replies (of 1 total)
  • The topic ‘Can't view any .xml file on site’ is closed to new replies.