sitemap rendering problem and file permission

  • hello
    i’ve a news website. everything normal until version 1.0.48.2. my problem is about sitemap . sitemap not working stable.i’m adding new post. but i’m not see new posts when refresh sitemap. i’m using wp-rocket. i’ve tried disable all plugins. I could not solve the problem. I installed old version. problem versiyon rank math 1.49
    i’m thinking write permissions of source of problem. i found a article ticket.
    i’m suggest you look. maybe Software team can fix this problem at new version.
    thank you.

    https://core.trac.wordpress.org/ticket/48689

    my debug results : [16-Oct-2020 08:58:48 UTC] PHP Warning: ftp_nlist() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 420
    [16-Oct-2020 08:58:48 UTC] PHP Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230

    Rankmath snippet

    <?php
    public static function get_htaccess_data() {
    $wp_filesystem = WordPress::get_filesystem();
    $htaccess_file = get_home_path() . ‘.htaccess’;

    return ! $wp_filesystem->exists( $htaccess_file ) ? false : [
    ‘content’ => $wp_filesystem->get_contents( $htaccess_file ),
    ‘writable’ => $wp_filesystem->is_writable( $htaccess_file ),
    ];
    }

    • This topic was modified 1 week, 5 days ago by Murat.
    • This topic was modified 1 week, 5 days ago by Murat.
    • This topic was modified 1 week, 5 days ago by Murat.
Viewing 1 replies (of 1 total)
  • Hello

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    The redirection set on your website is not correct.

    Please get in touch with your hosting guys and request them to add a 301 redirection so all your versions redirect to the HTTPS version.

    Meaning:

    http://website.com/
    http://website.com
    http://www.website.com/
    http://www.website.com
    https://www.website.com/
    https://www.website.com

    Redirect to
    https://website.com/

    Hope that helps.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.