Urgent.News

What's breaking now, across thousands of outlets.

Tech

Your Drupal robots.txt Changes Aren't Showing Up: Here's Why

Edited robots.txt in Drupal but the live file still shows old content? Composer Scaffold, static files, and CDN caches are usually why — here's the fix.

Your Drupal robots.txt Changes Aren't Showing Up: Here's Why

Your Drupal robots.txt file isn't updating as expected, even after clearing cache and running cron. This issue can stem from several factors. Firstly, if your project utilizes the Composer scaffold, it may regenerate the robots.txt file on each deployment, overwriting any manual changes. To resolve this, modify composer.json by adding `"file-mapping"` for the robots.txt file and setting its value to `false`.

This instructs the scaffold to skip the file during installation and updates. Additionally, ensure that the robots.txt file itself is deleted from the webroot after the change, to prevent any existing static file from taking precedence. Other potential causes include static files or directories in the webroot that override the module, Drupal's cache not being cleared correctly, hosting platform caching layers, or CDN and reverse proxy caching.

By systematically checking each of these aspects—composer.json configuration, existence of static files, cache clearing, response header verification, platform-specific caching, CDN purge, and web server configuration—you can identify and address the root cause, allowing the robotstxt module to serve the robots.txt file dynamically.

Written by urgent.news from HackerNoon's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at hackernoon.com →

More in Tech

First Full-Scale Tests of 175DF Methanol Engine Successfully Started

Everllence has announced the successful, full-scale testing of its 12-cylinder 175DF-M dual-fuel methanol engine at the company’s Test and Research Center in Frederikshavn, Denmark.

  • Everllence completes full-scale testing of 175DF-M dual-fuel methanol engine in Denmark.
  • 175DF-M engine operates efficiently in both diesel and methanol modes.
  • First commercial orders secured for high-speed engine with deliveries in mid-2027.

New Inmarsat Maritime Safety Data Hub Insights Combine GMDSS Distress And Weather Data To Provide Unique Insight Into Maritime Risk

Inmarsat Maritime, a Viasat company, has launched a new Maritime Safety Data Hub, providing the maritime industry with unique insights as well as direct access to the comprehensive analysis of risks…

  • Inmarsat Maritime launches Maritime Safety Data Hub
  • 106,975 maritime safety broadcasts analyzed in 2025
  • Weather conditions cause 84.6% of urgent messages

More from Tuesday 1 September →