I'm blogging about Emacs, Drupal, php and exciting subjects

PHP 8.4 Property Hooks: Practical Examples and When to Use Them

Property hooks are the headline feature of PHP 8.4. They let you attach get and set logic directly to a property declaration, removing the need for hand-written getter and setter methods in many common situations. IDEs and static analysis tools understand them natively — unlike magic __get/__set pairs, which are effectively invisible to tooling.

How to Harden Nginx for PHP and Drupal Sites

Running a Drupal site on Nginx means you are responsible for your own security posture. The default Nginx configuration is permissive — it is built for compatibility, not hardening. This guide walks through every layer of a production-grade Nginx configuration for PHP and Drupal sites: from hiding server fingerprints and locking down sensitive files, to security headers, TLS hardening, rate limiting, and PHP-FPM settings.

All examples are tested against Nginx 1.24+ and Drupal 10/11. Adapt paths to match your server layout.

Mobile-First SEO Optimization (Developer Guide 2026)

Mobile-first indexing means that search engines primarily use the mobile version of your site for ranking and indexing.

This shift reflects how users interact with the web today.


Why Mobile Matters

Most web traffic now comes from mobile devices. If your site performs poorly on mobile, it affects both user experience and search visibility.

Redirects and Canonical Tags (Technical SEO Guide)

Redirects and canonical tags are essential tools for managing duplicate content and maintaining a clean site structure.

When used correctly, they help consolidate signals and prevent confusion.


Understanding Redirects

Redirects send users and search engines from one URL to another.

SEO-Friendly Website Architecture (Developer Guide)

Website architecture is one of the most foundational aspects of SEO.

It determines how content is organized, how users navigate, and how search engines interpret your site.


Why Architecture Matters

Search engines don’t just evaluate individual pages—they evaluate how those pages are connected.

Structured Data SEO: A Developer’s Guide to Building Entity-Driven Search Visibility (2026)

Structured data has evolved far beyond a simple SEO enhancement. What used to be a tactical addition for gaining rich snippets has become a foundational layer in how search engines and AI systems interpret, connect, and trust information on the web.

For developers and technical teams, this shift changes the role of structured data entirely. It is no longer sufficient to add a few schema types to key pages. Instead, structured data should be treated as part of a broader system that defines entities, establishes relationships, and maintains consistency across an entire site.

Crawl Budget Optimization (Developer Guide for Scalable SEO)

For small websites, crawl budget is rarely a concern. Search engines can easily process all pages without running into limits.

But as your site grows, crawl budget becomes a critical factor.

If search engines spend time crawling unimportant or duplicate pages, they may miss the pages that actually matter.

XML Sitemaps for SEO (Developer Guide 2026)

XML sitemaps are often misunderstood. Many developers treat them as a requirement—something you generate once, submit to search engines, and forget.

In reality, a well-implemented sitemap is a powerful tool for guiding how search engines discover and prioritize your content.

Internal Linking Strategy for SEO (Developer Guide)

When developers think about SEO, they often focus on performance, metadata, or structured data. Internal linking is usually treated as a content concern.

In reality, internal linking is one of the most powerful—and most controllable—ranking factors.

It defines how search engines discover your content, how authority flows through your site, and which pages are considered important.

Subscribe to