How to Change Host Files on Windows

Sometimes we need to change host files in windows because the domain name is not publicly pointing to the correct server. So how does it work? When we type and go to a domain name in browser, let’s say codinghelphq.com, your browser does not reach the server right away. There are the (simplified) steps: the…

How to create local business schema creation and adding to plugin & wordpress

Go to https://technicalseo.com/tools/schema-markup-generator/ Select Local Business for the schema markup Add business details Copy schema script once adding of the business details is done To add schema for service area that doesnt have address we need to Go to https://technicalseo.com/tools/schema-markup-generator/ Select Local Business for the schema markup Add business details Copy the schema code generated on the…

How to Set WP Super Cache Pages for Static Info Websites

Add Plugins, install WP Super Cache Activate WP Super Cache Plugin Go to WP Super Cache Settings then turn caching on Click Update Status Go to Advanced tab,  Cache Timeout  1800000 seconds Timer 60000 seconds Click Change expiration Go to Preload tab Turn on preload mode (check off) Update refresh pre-leoaded cache every files every…

htaccess collection – mod_rewrite rules

Below are common htaccess redirects for wordpress. #Block a certain domain from being accessed RewriteEngine On RewriteCond %{HTTP_HOST} ^www.somedomainexample.com$ RewriteRule .* – [F]   PHP Alternative for same: if($_SERVER[‘HTTP_HOST’] == ‘www.gooddomain1.com’ || $_SERVER[‘HTTP_HOST’] == ‘gooddomain1.com’){ //run some codes 1; }else{ exit; } Redirection www and non www: By default, wordpress + plugins handle these automatically.…

Add header / footer in wordpress

Add this to the functions.php function function_name() { ?> whatever you want to print <?php } add_action( ‘wp_footer’, ‘function_name’ ); function function_name() { ?> whatever you want to print <?php } add_action( ‘wp_head’, ‘function_name’ );