PHPackages                             fritzmg/contao-multidomain-rebuild-index - 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. [Search &amp; Filtering](/categories/search)
4. /
5. fritzmg/contao-multidomain-rebuild-index

AbandonedArchivedContao-module[Search &amp; Filtering](/categories/search)

fritzmg/contao-multidomain-rebuild-index
========================================

Mini extension that makes rebuilding the search index possible for multidomain.

1.0.3(9y ago)228LGPL-3.0+PHPPHP &gt;=5.2

Since Nov 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/fritzmg/contao-multidomain-rebuild-index)[ Packagist](https://packagist.org/packages/fritzmg/contao-multidomain-rebuild-index)[ Docs](http://www.inspiredminds.at)[ RSS](/packages/fritzmg-contao-multidomain-rebuild-index/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

[![](https://camo.githubusercontent.com/13a3e0b08ec46ce646a88f513bb5d9e27446291d8479aaf270839d3fb3d873bc/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f323031362e737667)](https://github.com/fritzmg/contao-multidomain-rebuild-index)[![](https://camo.githubusercontent.com/d7a774f002cb825c31b984fe7ebfec6e67db29b8b8a3b327e7d938ce65dadf0d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269747a6d672f636f6e74616f2d6d756c7469646f6d61696e2d72656275696c642d696e6465782e737667)](https://packagist.org/packages/fritzmg/contao-multidomain-rebuild-index)[![](https://camo.githubusercontent.com/7e91e200dcfcdd20790c0c49c3b82c648c5a8649188bdcfe4535cd51eb4b4e95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269747a6d672f636f6e74616f2d6d756c7469646f6d61696e2d72656275696c642d696e6465782e737667)](https://packagist.org/packages/fritzmg/contao-multidomain-rebuild-index)

Contao Multidomain Rebuild Index
================================

[](#contao-multidomain-rebuild-index)

Rebuilding the search index via the backend of Contao actually creates an AJAX request for every page in the sitemap of every website root of the Contao installation. Thus, in order to be able to rebuild the search index in multidomain installations you need to set custom response headers for any page request that Contao handles, due to [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing). The headers are:

```
Access-Control-Allow-Headers: X-Requested-With
Access-Control-Allow-Origin: …

```

The first header is necessary, because Contao uses the MooTools `Request` class, which always adds the `X-Requested-With` request header (see [mootools.net/core/docs/1.5.2/Request/Request](http://mootools.net/core/docs/1.5.2/Request/Request)). The second header allows AJAX requests from other domains.

Adding these headers could be done via the `.htaccess`:

```

  Header set Access-Control-Allow-Headers X-Requested-With
  Header set Access-Control-Allow-Origin http://example.org

```

The value for the `Access-Control-Allow-Origin` header should be changed to the domain (and scheme) with which you access the Contao back end.

**However** this does not work in every server environment for requests that are handled by PHP via FastCGI for example (see ). In that case you would need to set these headers directly in the vhost configuration of Apache.

This extension helps with cases where that is not possible. By installing this extension the headers are automatically set for any front end page output. The `Access-Control-Allow-Origin` header is automatically set to the domain with which you accessed the Contao back end. No configuration is needed for this extension.

*Note:* further problems can arise, if you use HTTPS on some of the domains. AJAX requests to resources via HTTP are not possible when using HTTPS. In that case you need to make sure that you either:

- log into the backend via HTTP
- or force HTTPS for all domains

*Note:* this extension is not needed, if you use Contao `^3.5.25` or Contao `>=4.3.6`.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~2 days

Total

3

Last Release

3457d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f6ec05570f72d0fcc4d0a4fef2309799d53badf8b30484284e73724661e0d8?d=identicon)[fritzmg](/maintainers/fritzmg)

---

Top Contributors

[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (12 commits)")

---

Tags

searchindexcontaomultidomainrebuild

### Embed Badge

![Health badge](/badges/fritzmg-contao-multidomain-rebuild-index/health.svg)

```
[![Health](https://phpackages.com/badges/fritzmg-contao-multidomain-rebuild-index/health.svg)](https://phpackages.com/packages/fritzmg-contao-multidomain-rebuild-index)
```

###  Alternatives

[terminal42/escargot

A web crawler or spider library based on Symfony components

581.4M3](/packages/terminal42-escargot)[floriansemm/solr-bundle

Symfony Solr integration bundle

12280.2k2](/packages/floriansemm-solr-bundle)[opensearchserver/opensearchserver

PHP library for OpenSearchServer: professionnal search engine, crawlers (web, file, database), REST APIs, .... This library uses OpenSearchServer's V2 API.

5267.5k](/packages/opensearchserver-opensearchserver)[johannschopplich/kirby-algolia-docsearch

Algolia DocSearch plugin for Kirby CMS

262.1k](/packages/johannschopplich-kirby-algolia-docsearch)[mediamonks/crawler

Crawl your own website with various clients for SEO and indexing purposes.

211.1k1](/packages/mediamonks-crawler)

PHPackages © 2026

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