@japenz please send a report from the stage site and share the report ID(just the id). Thank you
-
This reply was modified 4 months, 1 week ago by
litetim.
Thread Starter
JapeNZ
(@japenz)
Hi @litetim,
Thank you for your help with this.
Report sent, ID WRFBRSGU
@japenz Let’s be clear 1 thing(forum guides) stops everybody from sharing access to sites. Please do not ask/give any users or passwords.
To test your issue there is access to site needed.
Please create a ticket by sending an email to: support at litespeedtech.com
In the ticket body please provide this topic link and request to be attached to a developer.
When email is sent, please confirm that you created it, no other info needed
Thread Starter
JapeNZ
(@japenz)
Hi @litetim,
Support ticket opened (Ticket Created #208917)
Thread Starter
JapeNZ
(@japenz)
Hi @litetim,
Unfortunately we had to remove the staging site due to massive bot attacks, which had to be resolved before we could continue with troubleshoooting.
I can’t seem to find a link to our support ticketr anymore though.
Anyway as part of our code review we were able to find a fix for the litespeed issue!
/* ============================================================================
LITESPEED CACHE FIXES
========================================================================= */
/**
* DISABLE CANONICAL REDIRECTS FOR LITESPEED ESI
* Detects the LiteSpeed ESI request and completely unhooks the redirect function
* from WordPress. This guarantees the redirect loop cannot happen.
*/
function lsc_fix_remove_redirects_for_esi() {
// Check if this is a LiteSpeed ESI request
// We check both the query parameter and the Header to be sure
if ( isset( $_GET['lsesi'] ) || isset( $_SERVER['HTTP_X_LSCACHE'] ) ) {
// Remove the standard WordPress canonical redirect
remove_action( 'template_redirect', 'redirect_canonical' );
// Safety: If an SEO plugin is forcing it, try to disable that too
add_filter( 'wpseo_canonical', '__return_false' ); // Yoast
}
}
// Run on 'init' which happens before the redirect logic is triggered
add_action( 'init', 'lsc_fix_remove_redirects_for_esi' );
Seems to have done the trick.