How to customize title in WordPress themes using pre_get_document_title

Posted on in Categories Howto, Open Source, Programming last updated December 13, 2017

WordPress version 4.4 and above use a filter called pre_get_document_title() for a customzing title for each page, post, tag, category and more. For example, I can change 404 error title using this filter. One can use the wp_title() which was formerly deprecated in version 4.4 but was returned for compatibility reasons.

Amazon AWS Route 53 GEO DNS Configurations

Posted on in Categories Amazon Web Services last updated April 28, 2013

You can send visitors to different servers based on country of their IP address using Amazon Route 53 cloud based dns server. For example, if you have a server in Amsterdam, a server in America, and a server in Singapore, then you can easily route traffic for visitors in Europe to the Amsterdam server, people in Asia go to the Singapore server and those in the rest of the world be served by the American server. This will results into the various kinds of benefits such as:

  1. Better performance as you are sending web site visitors to their nearest web server.
  2. Reduced load on origin.
  3. Geomarketing/online advertising.
  4. Restricting content to those geolocated in specific countries (I am not a big fan of DRM).
  5. In some cases you can get potentially lower costs and more.

In this post, I will explain how to configure and test GeoDNS using AWS Route 53 service.

Amazon Cloudfront Dynamic Content Delivery With A WordPress Blog

Posted on in Categories Amazon Web Services, Content Delivery Network last updated March 7, 2013

A typical Wordpress blog contains a mix of static stuff such as images, javascript, style sheets and dynamic content such as posts, pages and comments posted by users. You can speed up your blog by serving static content via content delivery network such as Akamai, Edgecast and so on. The big boys of CDN business also offered the solution to accelerate dynamic content to improve the performance and reliability of the blog. However, solutions offered by big and traditional CDNs are expensive. Amazon cloudfront recently started to serving dynamic content at lowered price. In this blog post, I will explain:

  1. How to serve your entire blog using cloudfront.
  2. DNS settings.
  3. Wordpress settings.
  4. Documenting limitations of cloudfront.
  5. Documenting performance improvements.