Category: Miscellaneous
-
I got wordpress mobile speed perfect 100 score
Creating a high speed wordpress site for mobile is a challenge in itself. Having worked for two decades in wordpress, i managed to find a way to achieve 100/100 speed for mobile sites (not desktop), passing core web vitals easy peesy, without any caching plugins or lazy load. Our TTFB also greatly improved. Creating high…
-
Replace Ip address in WordPress posts
If you have already designed a site with wordpress running in another server (ip only) and want to do a server migration to a live site, chances are the links to images or url appear as http://1.2.3.4/wp-content/2018/0/image.jpghttp://1.1.1.1/this-is-a-blog-post There could be thousands of links and images you might want to auto replace to the original domain…
-
Fix -> WordPress Plugin update asks for FTP
If you encounter error updating themes or plugins in wordpress after clicking update, you will be asked for FTP credentials by WordPress running in Amazon lightsail. You can fix this with this one line in wp-config.php. Restart the apache server
-
Install Redis cache in Lightsail
Using redis cache system can greatly optimize caching of database queries in wordpress and can have a performance boost for high traffic sites. Here is what you need to do to install via commandline. More details can be found here
-
Correct MX Cloudflare settings
For those whose cpanel mail accounts are not working, make sure you have the correct settings in Cloudflare DNS. 1.The A record for mail must not be proxied. Remove it change to DNS only A mail 11.22.33.44 DNS only 2.The MX record must be specified correctly. For example MX example.com example.com In my case, i…
-
Fonts are WordPress speed killer
Fonts kill mobile wordpress speed and can dramatically slow down your core web vitals, hurting your rankings. I am talking about mobile sites, not desktop speed. If you want a fast loading site for speed, get rid of the following.. You are better off using a default system font such as Helvetica, Arial to get…
-
How to Switch off Cloudflare?
All you have to do is either Once you do this, cloudflare becomes DNS server routing all your traffic to the host ip address. Before you do that remember your SSL installed at the local server must be working properly. You dont need to change name server records. After you do this, Cloudflare services such…
-
Strange drop in Google rankings with Cloudflare
Cloudflare could cause drop in Google SERPS positions if there is incorrect host configuration. Technically the traffic passes through the proxy (filtered by several layers and firewall rules). Infact cloudflare can influence rankings. For many small sites you dont even need cloudflare. Google has said speed is not everything. A decade ago, a web connection…
-
Renew SSL in bitnami using certbot
Quite often you get plugin error when renewing your ssl using certbot in amazon lightsail (bitnami) Here is the error Cert is due for renewal, auto-renewing…Could not choose appropriate plugin: The manual plugin is not working; there may be problems with your existing configuration.The error was: PluginError(‘An authentication script must be provided with –manual-auth-hook when…
-
Cleanup strings and numbers wrapped in brackets
A simple sed command to remove string and numbers wrapped inside brackets [ ] to cleanup your text or csv data. For example occurrences such as [1123] and [apples] will be removed by this command. This command takes input and creates a cleaned file