VirtualCed
New Pleskian
At least with the plugins installed on my websites, after months of investigation, it's now clear after a wp-toolkit plugins/themes upgrade, lots of sites have the permalinks broken.
To fix it, I have to save the permalink structure.
I can either do it on each site but just found I can solve it in command-line with
plesk ext wp-toolkit --wp-cli -instance-id 3 -- rewrite flush
I'm looking for an easy way to do this on every wp instance.
I know I can list the instances using
plesk ext wp-toolkit --list
I guess it should be doing in a script, displaying each instance number (awk or cut), then making a loop (for each) but I'd like to know if there is a solution to make this look easily ?
I need to do something like
for each wpinstance, do plesk ext wp-toolkit --wp-cli -instance-id $wpinstance -- rewrite flush ;done
Any suggestion ?
To fix it, I have to save the permalink structure.
I can either do it on each site but just found I can solve it in command-line with
plesk ext wp-toolkit --wp-cli -instance-id 3 -- rewrite flush
I'm looking for an easy way to do this on every wp instance.
I know I can list the instances using
plesk ext wp-toolkit --list
I guess it should be doing in a script, displaying each instance number (awk or cut), then making a loop (for each) but I'd like to know if there is a solution to make this look easily ?
I need to do something like
for each wpinstance, do plesk ext wp-toolkit --wp-cli -instance-id $wpinstance -- rewrite flush ;done
Any suggestion ?