Author: Prabhu Balakrishnan
-
View .htaccess hidden files in Mac
By default your mac, If you want to see hidden files like .htaccess To enable this feature just open terminal and execute this simple command. That’s about it.
-
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…
-
WordPress default system fonts
At system level, the default fonts for wordpress are defined in theme.json file. You can speed up loading of site by just using these default fonts. I have extracted this code from twenty twenty four theme code definitions. Sans-Serif Serif
-
Unicode bullets for lists
To make your wordpress fast, you can style custom bullets with unicode and just css. You dont need fontawesome or other icons. The simplest code to achieve it is using css marker. Note i have directly embedded the unicode list marker (+) replace with unicode char.
-
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
-
Handling 301 Redirect with Cloudflare
Cloudflare handles 301 redirects super easy on the top layer. Lately we encountered unique problem of removing amp pages and doing 301 direct of all canonical URLs. We received proper canonical tag warnings in google because of this and hurt our rankings. Cloudflare did it on the fly. No requirement to use plugins that overload…
-
Disable Bot fight mode in Cloudflare
Enabling bot fight mode may hurt your SEO and ability to get new links, also discovery if crawled by unknown bots. Be careful how you use it. In my case i found it hurt my organic rankings after enabling it for a year. You are better off disabling this option in cloudflare. If you are…
-
PHP 8.2 Error with Operand types
We did a host migration from php 7.4 to 8.2 and noticed some of our old scripts did not work throwing these errors After investigating the issue, we found the error was with type casting, which php versions above 8 are strict. This error occurs when you do math operations with string and int. An…