{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"typo3 sys_domain domain record context for production\/testing\/development","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/442 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"442\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>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.<\/p>\n<p>Mathias Schreiber: we used to rewrite PHP superglobals. So the domains would be like this:\nwww.bitburger.de.preview.wmdb.de<\/p>\n<p>Christian Weiske: mathias.schreiber: as in &quot;overwrite $_SERVER[HTTP_HOST]&quot;?<\/p>\n<p>Mathias Schreiber: jup...<\/p>\n<p>Chris Wolff: &#64;cweiske we use a &quot;SQL statement&quot; as part of the deployment which replaces the &quot;original domain&quot; intio the testing domain<\/p>\n<p><a class=\"reference external\" href=\"https:\/\/forge.typo3.org\/issues\/81269\">https:\/\/forge.typo3.org\/issues\/81269<\/a><\/p>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/442\/rev-raw\/586d00d5d16a37609fbe9a7262ca640669b44419\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/442#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
