Okay
  Public Ticket #1205270
404 error page sometimes
Closed

Comments

  •  2
    Leroy started the conversation

    This happens to my client's website sometimes. Then I reset the .htacces file via permalinks and the links are working again. 

    This happens only with Portfolio items. Other pages are working fine. Url is still the same only 404 page is showing. 

    Already tried to deactivate cache plugin but that's not the issue I think. I now have added the following code to functions.php. Hopefully this will resolve the issue. 

    // Stop WordPress from modifying .htaccess permalink rules
    add_filter('flush_rewrite_rules_hard','__return_false');

    If you have any news about this subject please let me know. 

  •  1,974
    Support replied

    Hi there

    Thanks for sharing your solution

    Portfolio is a custom type and if there is a custom slug set in theme options  the rewrite rules apply.

    What I think you should check is there something on the hosting environment that changes periodically? (htaccess, files, ssl certificates)

    if anyon else had a similar experience please feel free to contribute to this ticket

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy