Issue with Permalink redirect periodically with no clear reason as to why.

#938985
  • Resolved Chris Carpenter
    Rank Math free

    Hello,

    We have had a problem for a couple of months now where randomly, our permalinks for both Funnelkit links ie /checkouts/* and Learndash links /course/* with the claim they have a redirect on them pushing traffic back to the home page of our website. This problem can be resolved by going to the WordPress permalink settings and then by hitting save without changing any of the settings.

    It probably seems to do this every two weeks.

    Please let us know what we can do to fix this, we use both the standard and pro model of the Rankmath plugin.

    Thanks,

    
    ### wp-core ###
    
    version: 6.7.1
    site_language: en_GB
    user_language: en_GB
    timezone: Europe/London
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: closed
    environment_type: production
    user_count: 20539
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /var/www/vhosts/samuelleeds.com/htdocs
    wordpress_size: loading...
    uploads_path: /var/www/vhosts/samuelleeds.com/htdocs/wp-content/uploads
    uploads_size: loading...
    themes_path: /var/www/vhosts/samuelleeds.com/htdocs/wp-content/themes
    themes_size: loading...
    plugins_path: /var/www/vhosts/samuelleeds.com/htdocs/wp-content/plugins
    plugins_size: loading...
    fonts_path: /var/www/vhosts/samuelleeds.com/htdocs/wp-content/uploads/fonts
    fonts_size: loading...
    database_size: loading...
    total_size: loading...
    
    ### wp-dropins (2) ###
    
    advanced-cache.php: true
    object-cache.php: true
    
    ### wp-active-theme ###
    
    name: Hello Elementor Child (hello-theme-child-master)
    version: 1.0.1
    author: Elementor Team
    author_website: https://elementor.com/
    parent_theme: Hello Elementor (hello-elementor)
    theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, menus, automatic-feed-links, title-tag, html5, custom-logo, editor-style, align-wide, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider
    theme_path: /var/www/vhosts/samuelleeds.com/htdocs/wp-content/themes/hello-theme-child-master
    auto_update: Disabled
    
    ### wp-parent-theme ###
    
    name: Hello Elementor (hello-elementor)
    version: 3.1.1 (latest version: 3.2.1)
    author: Elementor Team
    author_website: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    theme_path: /var/www/vhosts/samuelleeds.com/htdocs/wp-content/themes/hello-elementor
    auto_update: Disabled
    
    ### wp-themes-inactive (2) ###
    
    Twenty Twenty-Five: version: 1.0, author: the WordPress team, Auto-updates disabled
    Twenty Twenty-Four: version: 1.3, author: the WordPress team, Auto-updates disabled
    
    ### wp-mu-plugins (3) ###
    
    Code Profiler Pro (mu-plugin): version: 1.0, author: Jerome Bruandet
    freesoul deactivate plugins [fdp]: version: 2.3.0, author: Jose Mortellaro
    LearnDash LMS Multisite: version: 1.0.0, author: LearnDash
    
    ### wp-plugins-active (73) ###
    
    Admin Columns Pro: version: 6.4.13, author: AdminColumns.com, Auto-updates disabled
    Advanced Access Manager: version: 6.9.43, author: AAM <s******@a************> (latest version: 6.9.44), Auto-updates disabled
    AffiliateWP: version: 2.27.3, author: AffiliateWP, Auto-updates disabled
    AffiliateWP - Affiliate Portal: version: 1.3.6, author: AffiliateWP, Auto-updates disabled
    AffiliateWP - Lifetime Commissions: version: 1.6.2, author: Sandhills Development, LLC, Auto-updates disabled
    AffiliateWP - REST API Extended: version: 1.2.1, author: AffiliateWP, Auto-updates disabled
    AutomateWoo: version: 6.1.3, author: WooCommerce (latest version: 6.1.4), Auto-updates disabled
    Classic Editor: version: 1.6.7, author: WordPress Contributors, Auto-updates disabled
    Code Profiler Pro: version: 1.7.2, author: Jerome Bruandet ~ NinTechNet Ltd., Auto-updates disabled
    Decorator - WooCommerce Email Customizer: version: 1.3.1, author: WebToffee, Auto-updates disabled
    Download Manager: version: 3.3.04, author: W3 Eden, Inc., Auto-updates disabled
    Duplicate Page: version: 4.5.4, author: mndpsingh287, Auto-updates disabled
    Elementor: version: 3.25.11, author: Elementor.com (latest version: 3.26.3), Auto-updates disabled
    Elementor Pro: version: 3.25.4, author: Elementor.com (latest version: 3.26.2), Auto-updates disabled
    Email Customizer for WooCommerce: version: 2.6.4, author: ThemeHigh, Auto-updates disabled
    Event Tickets: version: 5.17.0.1, author: The Events Calendar (latest version: 5.18.0), Auto-updates disabled
    Event Tickets Plus: version: 6.1.1, author: The Events Calendar (latest version: 6.1.2), Auto-updates disabled
    FluentCRM - Marketing Automation For WordPress: version: 2.9.30, author: WP Email Newsletter Team - FluentCRM (latest version: 2.9.31), Auto-updates disabled
    FluentCRM Pro: version: 2.9.30, author: Fluent CRM (latest version: 2.9.31), Auto-updates disabled
    Fluent Forms: version: 5.2.7, author: Contact Form - WPManageNinja LLC (latest version: 5.2.8), Auto-updates disabled
    Fluent Forms PDF Generator: version: 1.1.8, author: WPManageNinja LLC, Auto-updates disabled
    Fluent Forms Pro Add On Pack: version: 5.2.7, author: Fluent Forms, Auto-updates disabled
    FluentSMTP: version: 2.2.83, author: FluentSMTP & WPManageNinja Team, Auto-updates disabled
    Freesoul Deactivate Plugins: version: 2.3.0, author: Jose Mortellaro, Auto-updates disabled
    FunnelKit Funnel Builder: version: 3.7.3, author: FunnelKit (latest version: 3.8.0), Auto-updates disabled
    FunnelKit Funnel Builder Basic: version: 3.5.1, author: FunnelKit, Auto-updates disabled
    FunnelKit Funnel Builder Pro: version: 3.7.2, author: FunnelKit (latest version: 3.8.1), Auto-updates disabled
    Imagify: version: 2.2.3.2, author: Imagify Image Optimizer – Optimize Images & Convert WebP & Avif (latest version: 2.2.4), Auto-updates disabled
    JetEngine: version: 3.6.1.1, author: Crocoblock (latest version: 3.6.2), Auto-updates disabled
    Klarna Order Management for WooCommerce: version: 1.9.3, author: klarna, krokedil, Auto-updates disabled
    Klarna Payments for WooCommerce: version: 3.8.3, author: klarna, Auto-updates disabled
    LearnDash Licensing & Management: version: 1.3.2, author: LearnDash, Auto-updates disabled
    LearnDash LMS: version: 4.15.2, author: LearnDash, Auto-updates disabled
    LearnDash LMS - Course Grid: version: 2.0.10, author: LearnDash, Auto-updates disabled
    LearnDash LMS - Elementor: version: 1.0.9.1, author: LearnDash, Auto-updates disabled
    LearnDash LMS - ProPanel: version: 2.1.4.2, author: LearnDash, Auto-updates disabled
    Login using WordPress Users: version: 13.2.0, author: miniOrange, Auto-updates disabled
    Maximum Products per User for WooCommerce Pro: version: 4.3.3, author: WPFactory, Auto-updates disabled
    Metorik Helper: version: 2.0.8, author: Metorik (latest version: 2.0.9), Auto-updates disabled
    MobiLoud Canvas: version: 3.8, author: MobiLoud (latest version: 3.8.1), Auto-updates disabled
    Ninja Tables: version: 5.0.16, author: WPManageNinja LLC, Auto-updates disabled
    Object Cache Pro: version: 1.21.3, author: Rhubarb Group, Auto-updates disabled
    Payment Methods by Product & Country for WooCommerce: version: 1.8.1, author: WPFactory, Auto-updates disabled
    Payment Plugins for Stripe WooCommerce: version: 3.3.78, author: Payment Plugins, s******@p***************** (latest version: 3.3.80), Auto-updates disabled
    PDF Invoices & Packing Slips for WooCommerce: version: 3.9.0, author: WP Overnight (latest version: 3.9.4), Auto-updates disabled
    PDF Invoices & Packing Slips for WooCommerce - Professional: version: 2.15.11, author: WP Overnight (latest version: 2.15.12), Auto-updates disabled
    PixelYourSite PRO: version: 11.1.2.1, author: PixelYourSite (latest version: 11.1.3.1), Auto-updates disabled
    PrettyLinks: version: 3.6.15, author: Pretty Links, Auto-updates disabled
    Rank Math SEO: version: 1.0.233, author: Rank Math SEO (latest version: 1.0.234.1), Auto-updates disabled
    Rank Math SEO PRO: version: 3.0.76, author: Rank Math SEO (latest version: 3.0.77.1), Auto-updates disabled
    Solid Security Pro: version: 8.4.0, author: SolidWP, Auto-updates disabled
    Split Test For Elementor: version: 1.8.2, author: Rocket Elements, Auto-updates disabled
    Split Test For Elementor Pro: version: 1.1.4, author: Rocket Elements, Auto-updates disabled
    Stream: version: 4.0.2, author: XWP, Auto-updates disabled
    The Events Calendar: version: 6.8.3, author: The Events Calendar (latest version: 6.9.0), Auto-updates disabled
    The Events Calendar Pro: version: 7.3.0, author: The Events Calendar (latest version: 7.3.1), Auto-updates disabled
    UpdraftPlus - Backup/Restore: version: 2.24.11.26, author: TeamUpdraft, DavidAnderson (latest version: 2.24.12.26), Auto-updates enabled
    User Switching: version: 1.9.1, author: John Blackbourn, Auto-updates disabled
    User Tickets Shortcode: version: 2.0, author: Chris Carpenter, Auto-updates disabled
    WishList Member™ Legacy: version: 3.27.13, author: WishList Products, Auto-updates disabled
    WooCommerce: version: 9.4.3, author: Automattic (latest version: 9.5.1), Auto-updates disabled
    WooCommerce.com Update Manager: version: 1.0.3, author: Automattic, Auto-updates disabled
    WooCommerce Custom Thank You Pages: version: 1.0.8, author: Jeroen Sormani, Auto-updates disabled
    WooCommerce Min/Max Quantities: version: 5.0.4, author: Woo, Auto-updates disabled
    WooCommerce Phone Orders & Manual Orders: version: 3.4.5, author: IgniteWoo.com, Auto-updates disabled
    WooCommerce Product Bundles: version: 8.2.0, author: Woo (latest version: 8.2.2), Auto-updates disabled
    WooCommerce Royal Mail: version: 3.4.2, author: WooCommerce, Auto-updates disabled
    WooCommerce Subscriptions: version: 6.9.1, author: WooCommerce (latest version: 7.0.0), Auto-updates disabled
    WP All Import - WooCommerce Import Add-On Pro: version: 4.0.0, author: Soflyy, Auto-updates disabled
    WP All Import Pro: version: 4.9.4, author: Soflyy, Auto-updates disabled
    WP Crontrol: version: 1.17.1, author: John Blackbourn, Auto-updates disabled
    WP Rocket: version: 3.17.3.1, author: WP Media, Auto-updates disabled
    Zapier for WordPress: version: 1.5.1, author: Zapier, Auto-updates disabled
    
    ### wp-plugins-inactive (5) ###
    
    IgniteWoo Updater: version: 3.0.7, author: IgniteWoo.com, Auto-updates disabled
    ManageWP - Worker: version: 4.9.20, author: GoDaddy, Auto-updates disabled
    PHP Compatibility Checker: version: 1.6.3, author: WP Engine, Auto-updates disabled
    Stripe Payment Gateway for WooCommerce: version: 1.11.1, author: FunnelKit, Auto-updates disabled
    WP-Optimize - Clean, Compress, Cache: version: 3.8.0, author: TeamUpdraft, DavidAnderson, Auto-updates disabled
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1691
    imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
    imagick_version: 3.7.0
    file_uploads: 1
    post_max_size: 1024M
    upload_max_filesize: 256M
    max_effective_size: 256 MB
    max_file_uploads: 40
    imagick_limits: 
    	imagick::RESOURCETYPE_AREA: 122 MB
    	imagick::RESOURCETYPE_DISK: 1073741824
    	imagick::RESOURCETYPE_FILE: 768
    	imagick::RESOURCETYPE_MAP: 512 MB
    	imagick::RESOURCETYPE_MEMORY: 256 MB
    	imagick::RESOURCETYPE_THREAD: 1
    	imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 9.55.0
    
    ### tec-tickets ###
    
    ### the-events-calendar ###
    
    ### events-calendar-pro ###
    
    ### wp-server ###
    
    server_architecture: Linux 5.15.0-94-generic x86_64
    httpd_software: nginx/1.18.0
    php_version: 7.4.33 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 2000
    memory_limit: 512M
    max_input_time: 120
    upload_max_filesize: 256M
    php_post_max_size: 1024M
    curl_version: 7.81.0 OpenSSL/3.0.2
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    current: 2024-12-27T21:19:20+00:00
    utc-time: Friday, 27-Dec-24 21:19:20 UTC
    server-time: 2024-12-27T21:19:05+00:00
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.11.7-MariaDB-1:10.11.7+maria~ubu2204-log
    client_version: mysqlnd 7.4.33
    max_allowed_packet: 16777216
    max_connections: 300
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /var/www/vhosts/samuelleeds.com/htdocs/wp-content
    WP_PLUGIN_DIR: /var/www/vhosts/samuelleeds.com/htdocs/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 512M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: undefined
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    fonts: not writable
    mu-plugins: writable
    
    ### objectcache ###
    
    general-status: Connected
    general-dropin: Valid
    general-license: Valid
    general-env: production
    general-multisite: No
    general-mu: No
    general-vcs: No
    general-eviction-policy: noeviction
    general-compressions: LZF, LZ4, ZSTD
    general-basename: object-cache-pro/object-cache-pro.php
    general-client: RedisCacheProClientsPhpRedis
    versions-php: 7.4.33 (Outdated)
    versions-igbinary: 3.2.15
    versions-phpredis: 6.0.2
    versions-relay: Not installed
    versions-redis: 6.0.16
    versions-plugin: 1.21.3
    versions-dropin: 1.21.3
    statistics-redis-memory: 89.08 MB
    statistics-redis-keys: 47408
    groups-global: [
        "analytics",
        "objectcache",
        "blog-details",
        "blog-id-cache",
        "blog-lookup",
        "blog_meta",
        "global-posts",
        "image_editor",
        "networks",
        "network-queries",
        "sites",
        "site-details",
        "site-options",
        "site-queries",
        "site-transient",
        "theme_files",
        "translation_files",
        "rss",
        "users",
        "user-queries",
        "user_meta",
        "useremail",
        "userlogins",
        "userslugs"
    ]
    groups-non-persistent: [
        "tribe-events-non-persistent",
        "tribe-events",
        "tec_tickets",
        "wishlist-member*",
        "nybivro_wlm_userlevel_options*",
        "nybivro_wlm_userlevels*",
        "nybivro_wlm_user_options*",
        "nybivro_wlm_options*",
        "getmembershipcontent*",
        "_wc_session_",
        "_wc_session_expires_",
        "counts",
        "plugins",
        "theme_json",
        "themes",
        "itsec-lockouts",
        "tec_occurrences"
    ]
    groups-non-prefetchable: [
        "analytics",
        "objectcache",
        "userlogins",
        "wc_session_id"
    ]
    config-token: ••••••••6a77
    config-connector: RedisCacheProConnectorsPhpRedisConnector
    config-cache: RedisCacheProObjectCachesPhpRedisObjectCache
    config-logger: RedisCacheProLoggersErrorLogLogger
    config-log_levels: emergency, alert, critical, error, warning
    config-scheme: tcp
    config-host: 10.2.81.142
    config-port: 6379
    config-database: 0
    config-username: null
    config-password: null
    config-prefix: null
    config-maxttl: 604800s (1 week)
    config-timeout: 1s
    config-read_timeout: 1s
    config-retry_interval: 25ms
    config-retries: 3
    config-backoff: smart
    config-persistent: false
    config-shared: null
    config-async_flush: false
    config-group_flush: keys
    config-network_flush: all
    config-cluster: null
    config-cluster_failover: error
    config-servers: null
    config-replication_strategy: distribute
    config-sentinels: null
    config-service: null
    config-tracer: none
    config-serializer: php
    config-compression: none
    config-global_groups: null
    config-non_persistent_groups: tribe-events-non-persistent, tribe-events, tec_tickets, wishlist-member*, nybivro_wlm_userlevel_options*, nybivro_wlm_userlevels*, nybivro_wlm_user_options*, nybivro_wlm_options*, getmembershipcontent*, _wc_session_, _wc_session_expires_
    config-non_prefetchable_groups: null
    config-prefetch: false
    config-split_alloptions: false
    config-analytics: {
        "enabled": true,
        "persist": true,
        "retention": 7200,
        "sample_rate": 100,
        "footnote": true
    }
    config-relay: {
        "cache": true,
        "listeners": false,
        "invalidations": true,
        "allowed": null,
        "ignored": [
            "*:analytics:*"
        ]
    }
    config-tls_options: null
    config-updates: true
    config-debug: false
    config-strict: true
    config-save_commands: false
    environment-WP_REDIS_DISABLED: undefined
    environment-OBJECTCACHE_CONFIG: undefined
    constants-WP_DEBUG: true
    constants-SAVEQUERIES: undefined
    constants-WP_REDIS_DIR: undefined
    constants-WP_REDIS_DISABLED: false
    constants-WP_REDIS_CONFIG: {
        "token": "••••••••6a77",
        "host": "10.2.81.142",
        "port": 6379,
        "database": 0,
        "maxttl": 604800,
        "timeout": 1,
        "read_timeout": 1,
        "debug": false,
        "non_persistent_groups": [
            "tribe-events-non-persistent",
            "tribe-events",
            "tec_tickets",
            "wishlist-member*",
            "nybivro_wlm_userlevel_options*",
            "nybivro_wlm_userlevels*",
            "nybivro_wlm_user_options*",
            "nybivro_wlm_options*",
            "getmembershipcontent*",
            "_wc_session_",
            "_wc_session_expires_"
        ]
    }
    
    ### solid-security ###
    
    pro: pro
    initial_build: 4128
    activated: 2024-03-09 16:59:15
    patchstack: false
    modules: 
    	0: ban-users
    	1: brute-force
    	2: network-brute-force
    	3: magic-links
    	4: user-logging
    	5: version-management
    	6: webauthn
    settings: 
    	ban-users: Array
    	brute-force: Array
    	network-brute-force: Array
    	version-management: Array
    	global: Array
    	system-tweaks: Array
    	wordpress-tweaks: Array
    	hide-backend: Array
    passkeys-users: undefined
    passkeys-total: 0
    user_groups: 
    	0: Array
    	1: Array
    	2: Array
    	3: Array
    	4: Array
    	5: Array
    
    ### learndash ###
    
    version: 4.15.2
    last_updated: 1719234046
    previous_version: 4.15.1
    license_validated: true
    course_count: 23
    group_count: undefined
    lesson_count: 129
    topic_count: 1098
    quiz_count: 2
    question_count: 62
    exam_count: undefined
    certificate_count: 2
    shared_course_steps: false
    active_template: ld30
    focus_mode: true
    rtl: false
    registration_page: false
    currency: undefined
    nested_urls: false
    payment_gateway_paypal_ipn: false
    payment_gateway_stripe_connect: false
    payment_gateway_razorpay: false
    course_using_free_form_progression_count: 14
    course_using_linear_progression_count: 9
    lesson_using_video_progression_count: undefined
    lesson_using_drip_content_count: undefined
    topic_using_drip_content_count: undefined
    quiz_using_randomized_question_ordering_count: undefined
    enrolled_user_count: 19733
    LEARNDASH_DEBUG: false
    LEARNDASH_SCRIPT_DEBUG: false
    
    
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Can you please share the affected website URL here so we can take a closer look from our end?

    However, if this issue can easily be resolved by flushing the permalinks, you can apply the following code:

    add_action('my_hourly_event', 'do_this_hourly');
     
    function my_activation() {
        if ( !wp_next_scheduled( 'my_hourly_event' ) ) {
            wp_schedule_event(time(), 'hourly', 'my_hourly_event');
        }
    }
     
    add_action('wp', 'my_activation');
     
    function do_this_hourly() {
        global $wp_rewrite;
        $wp_rewrite->flush_rules();
    }

    You may refer to this guide on how to add filters or action codes to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you with this one.

    Chris Carpenter
    Rank Math free

    Hi Jeremy,

    Yes, of course, our website is: https://www.samuelleeds.com/

    Hello,

    Could you please confirm if you have already added the code we shared above?

    If not, you can apply it and monitor if the issue persists.

    Looking forward to helping you.

    Chris Carpenter
    Rank Math free

    I have indeed added the code to our theme, I think however that I am concerned that if the issue happens within that interval, that can cost us about 8 sales until the hour runs which is not ideal at all.

    I also disabled the redirects module when I raised the case to mitigate the problem and as of now, it has not occurred but with Christmas, we have had less eyes on it.

    This problem I would say started when we moved to a git. infrastructure that has 4 web nodes connected to a single database on Nginx. Im not sure if that has any reason to conflict with Rankmath but equally said it has occurred more recently then it use to.

    Thanks,

    Chris Carpenter
    Rank Math free

    Hey, this just happened again but was able to capture exactly when it happened due to not having redirect enabled and I can see in my website stream notes that this occurred very closely to when the problem started:

    The “site_url_history” setting was updated by the load balancer IP of our site so a programmatic trigger in WordPress.

    I hope this helps to tie down the cause.

    Black
    Rank Math free

    a caching or permalink issue that’s resetting every couple of weeks. Since saving the permalink settings temporarily resolves it, the issue might be related to how WordPress or your caching plugin is handling URL redirects. Try clearing the cache regularly, or check for any conflicting plugins (like RankMath or a caching plugin) that may be causing this. Also, ensure that your .htaccess file is correctly configured. If the problem persists, you could try setting up a scheduled task to refresh permalinks automatically or look into RankMath’s redirect settings for any automatic redirects being applied.

    Chris Carpenter
    Rank Math free

    We are using an Nginx server so we don’t have a .htaccesss file. Also, our caching plugin is WP Rocket. I have found it has just happened again so I’m not sure if the code I have implemented is actually causing the problem to increase.

    Hello,

    If the issue persists, please don’t flush the permalinks yet and share the affected URLs here.

    Then, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)

The ticket ‘Issue with Permalink redirect periodically with no clear reason as to why.’ is closed to new replies.