<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>typo3 sys_domain domain record context for production/testing/development</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/442 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="442"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Christian Weiske: How do you guys use sys_domain records in combination with contexts (production/testing/development)? The first domain record is used for preview links in the backend, no matter what context I'm in.&lt;/p&gt;
&lt;p&gt;Mathias Schreiber: we used to rewrite PHP superglobals. So the domains would be like this:
www.bitburger.de.preview.wmdb.de&lt;/p&gt;
&lt;p&gt;Christian Weiske: mathias.schreiber: as in &amp;quot;overwrite $_SERVER[HTTP_HOST]&amp;quot;?&lt;/p&gt;
&lt;p&gt;Mathias Schreiber: jup...&lt;/p&gt;
&lt;p&gt;Chris Wolff: &amp;#64;cweiske we use a &amp;quot;SQL statement&amp;quot; as part of the deployment which replaces the &amp;quot;original domain&amp;quot; intio the testing domain&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://forge.typo3.org/issues/81269"&gt;https://forge.typo3.org/issues/81269&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/442/rev-raw/586d00d5d16a37609fbe9a7262ca640669b44419/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/442#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
