Viewing 15 replies - 1 through 15 (of 16 total)
  • Since WP Super Cache 1.5.4, caching of sitemaps works properly and it should works without excluding them.

    It’s possible to add custom rules in .htaccess (before WordPress rules):

    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    

    Maybe it could help.

    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Hey

    nope, still blank: https://procureled.com/sitemap_index.xml

    Thanks again

    I just done more tests. It seems that the server returns 200 status and empty content before loading WordPress.

    $ curl -w "@curl-format.txt" -s https://xxxxxxxxxx.com/sitemap_index.xml
        time_namelookup:  0.004
           time_connect:  0.052
        time_appconnect:  0.340
       time_pretransfer:  0.340
          time_redirect:  0.000
     time_starttransfer:  0.544
                        ----------
             time_total:  0.544
    $ curl -w "@curl-format.txt" -s https://xxxxxxxxxx.com/license.txt
        time_namelookup:  0.004
           time_connect:  0.052
        time_appconnect:  0.338
       time_pretransfer:  0.338
          time_redirect:  0.000
     time_starttransfer:  0.400
                        ----------
             time_total:  0.452
    $ curl -w "@curl-format.txt" -s https://xxxxxxxxxx.com/wp-load.php
        time_namelookup:  0.004
           time_connect:  0.074
        time_appconnect:  0.368
       time_pretransfer:  0.368
          time_redirect:  0.000
     time_starttransfer:  3.603
                        ----------
             time_total:  3.603
    

    It’s possible that there is auto_prepend_file script which is loaded before WP or some rules in .htaccess. Could you check it with your host?

    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Hey
    This is all thats in our HTC file:

    suPHP_ConfigPath /var/sites/p/procureled.com/public_html/

    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://procureled.com/$1 [R,L]

    # 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>

    # END WordPress

    <IfModule mod_deflate.c>
    # Compress HTML, CSS, JavaScript, Text, XML and fonts
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE application/x-font
    AddOutputFilterByType DEFLATE application/x-font-opentype
    AddOutputFilterByType DEFLATE application/x-font-otf
    AddOutputFilterByType DEFLATE application/x-font-truetype
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE font/opentype
    AddOutputFilterByType DEFLATE font/otf
    AddOutputFilterByType DEFLATE font/ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE image/x-icon
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/xml

    # Remove browser bugs (only needed for really old browsers)
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent
    </IfModule>

    <IfModule mod_expires.c>
    ExpiresActive On

    # Images
    ExpiresByType image/jpeg “access plus 1 year”
    ExpiresByType image/gif “access plus 1 year”
    ExpiresByType image/png “access plus 1 year”
    ExpiresByType image/webp “access plus 1 year”
    ExpiresByType image/svg+xml “access plus 1 year”
    ExpiresByType image/x-icon “access plus 1 year”

    # Video
    ExpiresByType video/mp4 “access plus 1 year”
    ExpiresByType video/mpeg “access plus 1 year”

    # CSS, JavaScript
    ExpiresByType text/css “access plus 1 month”
    ExpiresByType text/javascript “access plus 1 month”
    ExpiresByType application/javascript “access plus 1 month”

    # Others
    ExpiresByType application/pdf “access plus 1 month”
    ExpiresByType application/x-shockwave-flash “access plus 1 month”
    </IfModule>
    AddType x-httpd-php71 .php

    The .htaccess file looks good (I’d guess that you didn’t send WPSC and WP sections).

    I’ve tested both stylesheet files and it works.

    $ curl -i https://procureled.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl
    HTTP/1.1 200 OK
    Date: Sun, 03 Mar 2019 12:31:26 GMT
    Server: Apache
    Last-Modified: Sat, 02 Mar 2019 17:07:30 GMT
    ETag: "81794b2f-10ab-5831f8f049743"
    Accept-Ranges: bytes
    Content-Length: 4267
    Vary: Accept-Encoding,User-Agent
    Connection: close
    Content-Type: application/xml
    Set-Cookie: DYNSRV=lin-10-170-0-181; path=/
    
    <?xml version="1.0" encoding="UTF-8"?>
            <xsl:stylesheet version="2.0"
    ...
    $ curl -i https://procureled.com/main-sitemap.xsl
    HTTP/1.1 200 OK
    Date: Sun, 03 Mar 2019 12:31:36 GMT
    Server: Apache
    Vary: Accept-Encoding,Cookie,User-Agent
    X-Robots-Tag: noindex, follow
    Pragma: public
    Cache-Control: maxage=31536000
    Expires: Mon, 02 Mar 2020 12:31:37 GMT
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/xml;charset=UTF-8
    Set-Cookie: DYNSRV=lin-10-170-0-181; path=/
    
    <?xml version="1.0" encoding="UTF-8"?>
            <xsl:stylesheet version="2.0"
    ...
    
    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Hi

    Yes its a strange one, will have to stick with the sitemap.xml

    Thanks for trying
    Mark

    It’s most likely issue which isn’t related to Yoast SEO and WP Super Cache plugins. I’m not sure which is root of cause, but it seems that some PHP code (or server rules) blocks access to xml files and feeds.

    You should check php.ini or .user.ini. Maybe there is custom auto_prepend_file. Also, maybe wp-config.php contains some “code” which blocks access. I don’t have other ideas.

    Anyway, you could check logs in next days. Maybe there will be logged something useful.

    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Ok thanks for your help, will be in touch.

    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Hi

    Our host, has checked all the files above and the is nothing blocking access to the xml files and feeds.

    Any suggestions would be great.

    speak soon

    Please install plugin Health Check & Troubleshooting. You should check Dashboard → Health Check → Site Status for “possible errors”. Also, you should check File Integrity of WP core (Health Check → Tools → Check the File Integrity).

    If it’s possible then please update theme, all plugins and WP core. It’s recommended to you create backup before this action.

    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Hi All

    It looks like a Permalink or http/https issue, after playing around with the url!

    We can view the sitemap here:

    sitemap: https://procureled.com/index.php?sitemap=1
    Pages: https://procureled.com/index.php?sitemap=page&sitemap_n=

    Why has the url got index.php?
    Any ideas how to fix this?

    Thank you

    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Hey, just to note:
    We did change the http to https about 6-9 months ago, but we ran a search and replace. but this issue has only recently started.

    Thanks

    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Hey

    sorry, if we put http://procureled.com/sitemap_index.xml

    Leaving the “s” out of the url, it loads?

    Thought this might help with a solution.

    Thank you

    I already said that sitemaps work if I use “query string” version and http version is redirected (somehow) to https://procureled.com/index.php?sitemap=1. You will see sitemap in browser, but if you try to open particular sitemap then it’s again empty content.

    Did you try “Check the File Integrity”? It’s possible that some code is injected or something like this (your plugins had security issues). It’s older version of WP core (I see 4.9.6 in HTML source). I recommend to you try to check integrity of WP core files (and replace files if there are modified files), then try to do minor update to 4.9.9. It could help to we exclude this possibility.

    I didn’t see a lot of custom rules in your .htaccess. Maybe you could try to backup current .htaccess file, remove this file and just click on “Save” (WP Dashboard → Settings → Permalinks) to re-generate default .htaccess and rewrite rules. After this, you need to add rules for Leverage browser caching and compression for static files (lines related to comment # Compress HTML, CSS, JavaScript, Text, XML and fonts). Also, you should check WPSC settings.

    Thread Starter mawebdesignuk

    (@mawebdesignuk)

    Hi Saša

    Ok thank for the info, will try this and come back with the results.

    Speak soon & thanks again for your support.

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Blank white Sitemap page’ is closed to new replies.