PHPackages                             amazeelabs/silverback\_cdn\_redirect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. amazeelabs/silverback\_cdn\_redirect

ActiveDrupal-module[HTTP &amp; Networking](/categories/http)

amazeelabs/silverback\_cdn\_redirect
====================================

Provide redirect information to CDNs.

2.2.9(1y ago)038.2k↓41.4%1[1 PRs](https://github.com/AmazeeLabs/silverback_cdn_redirect/pulls)GPL-2.0+PHP

Since Jun 29Pushed 1y ago6 watchersCompare

[ Source](https://github.com/AmazeeLabs/silverback_cdn_redirect)[ Packagist](https://packagist.org/packages/amazeelabs/silverback_cdn_redirect)[ Docs](https://github.com/AmazeeLabs/silverback-mono/tree/development/packages/composer/amazeelabs/silverback_cdn_redirect#readme)[ RSS](/packages/amazeelabs-silverback-cdn-redirect/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (34)Used By (0)

Silverback CDN Redirect
=======================

[](#silverback-cdn-redirect)

To be used with static websites, hosted on a CDN (e.g. Gatsby and Netlify). Solves two problems:

1. Can resolve redirects that are not stored in CDN config, which is necessary, since Drupal's redirect module creates a redirect for each path change, which can be a lot. In that case, the redirect is resolved by rewriting the request to Drupal.
2. Rewrite paths not know by the CDN, to client-side rendered pages. Useful for pages that should not be rendered statically.

Flowchart!
----------

[](#flowchart)

 ```
flowchart

  subgraph Drupal
      RedirectCheck{Drupal redirect exists?}
      EntityCheck{Drupal page exists?}
      RequestNotFound[Fetch 404 from CDN]
      RequestCSR[Fetch CSR template from CDN]
  end

  subgraph CDN
      Request(User navigates to path)
      CDNCheck{Static page exists?}
      CDNDeliver{{Respond with static page}}
      CDNRedirect{{Respond with redirect from Drupal}}
      CDNRewrite{{Respond with content from Drupal}}
  end

  CDNCheck -- no --> RedirectCheck
  RedirectCheck -- yes --> CDNRedirect
  RedirectCheck -- no --> EntityCheck
  Request --> CDNCheck
  CDNCheck -- yes --> CDNDeliver
  EntityCheck -- no --> RequestNotFound
  EntityCheck -- yes --> RequestCSR
  RequestNotFound ----> CDNRewrite
  RequestCSR ----> CDNRewrite
```

      Loading Drupal config
-------------

[](#drupal-config)

- Patch Drupal with a patch from [\#2741939](https://www.drupal.org/project/drupal/issues/2741939)
- Enable the module
- Set the settings, for example: ```
    drush cset silverback_cdn_redirect.settings base_url https://my-gatsby.site
    drush cset silverback_cdn_redirect.settings 404_path /404
    drush cset silverback_cdn_redirect.settings should_prefix_404_path true

    ```

Gatsby config
-------------

[](#gatsby-config)

- Add [gatsby-plugin-netlify](https://www.gatsbyjs.com/plugins/gatsby-plugin-netlify)package
- Configure the catch-all redirect in `createPages````
    createRedirect({
      fromPath: '/*',
      toPath: `https://my-drupal.site/cdn-redirect/:splat`,
      statusCode: 200,
    });
    ```

    Note: `statusCode: 200` is required to "hide" the request to backend from the browser.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~138 days

Total

32

Last Release

600d ago

Major Versions

1.7.2 → 2.0.02022-09-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/501415?v=4)[Philipp Melab](/maintainers/pmelab)[@pmelab](https://github.com/pmelab)

### Embed Badge

![Health badge](/badges/amazeelabs-silverback-cdn-redirect/health.svg)

```
[![Health](https://phpackages.com/badges/amazeelabs-silverback-cdn-redirect/health.svg)](https://phpackages.com/packages/amazeelabs-silverback-cdn-redirect)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
