WordPress Errors regarding Redirection Rules and WP-Rocket Cache.

#1
Hi,

I recently shifted my WordPress website to Litespeed server from Apache - Sysberto[dot]com

Issue 1:

I had changed my Permalinks from Year/Month to /Post way long and added the redirection from Yoast Permalinks Helper too but now it's not working..

"Rewrite "\/([0-9]{4})\/([0-9]{2})\/(.*)" https://www.sysberto.com/$3 permanent;"
"RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/(?!page/)(.+)$ https://www.sysberto.com/$3"

Pls help me to achieve this through .htaccess.

Issue 2:

I have configured WP- Rocket as Cache plugin as Litespeed isn't working as said.... and I have enabled Cloudflare as well where Pre-load cache and Critical CSS generation files doesn't work at all when Cloudflare is Enabled... but works when disabled...

What could be the cause? Please help me out.
 
#3
@lsqtwrk

1 - Exactly .. For e.g www[dot]sysberto[dot]com/2017/04/technology-changing-online-gaming should redirect without year and month.

2 - Umm...where to add basically? In rules? IP Access Rules ? Which tab... pls elaborate.

Thanks for the response
 

lsqtwrk

Administrator
#4
Hi,

1.

Add this rule at top of the htaccess

Code:
RewriteRule ([0-9]{4})\/([0-9]{2})\/(.*) https://domain.com/$3 [R=301,L]
replace domain.com to your actual domain

and then restart OLS

2. CF dashbord ---> Firewall ---> Firewall Rules ---> Create firewall rule

Field = IP address , Operator = is in , then copy-paste all the IPs into value box, then choose action "allow"
 
#6
Hi,

1.

Add this rule at top of the htaccess

Code:
RewriteRule ([0-9]{4})\/([0-9]{2})\/(.*) https://domain.com/$3 [R=301,L]
replace domain.com to your actual domain

and then restart OLS

2. CF dashbord ---> Firewall ---> Firewall Rules ---> Create firewall rule

Field = IP address , Operator = is in , then copy-paste all the IPs into value box, then choose action "allow"

Work for me but after that, all my images stopped loading
 
Top