<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=RenameInstance</id>
	<title>RenameInstance - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=RenameInstance"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=RenameInstance&amp;action=history"/>
	<updated>2026-08-22T22:54:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=RenameInstance&amp;diff=3120&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=RenameInstance&amp;diff=3120&amp;oldid=prev"/>
		<updated>2016-04-06T20:36:15Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page describes what you have to do to change the name of an RT instance (rtname [[SiteConfig]] option).&lt;br /&gt;
&lt;br /&gt;
== Pristine Instance ==&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;ve just installed RT and have not created any tickets as of yet, you only have to&lt;br /&gt;
&lt;br /&gt;
* change the instance name in the rtname [[SiteConfig]] option.&lt;br /&gt;
&lt;br /&gt;
== Operational Instance ==&lt;br /&gt;
&lt;br /&gt;
If there are already tickets in the instance, things are a little more complicated.&lt;br /&gt;
&lt;br /&gt;
=== RT 3.6.x ===&lt;br /&gt;
&lt;br /&gt;
In RT 3.6 a new EmailSubjectTagRegex config option had been added which makes renaming much easier. You have to do:&lt;br /&gt;
&lt;br /&gt;
* change the name in the rtname config option.&lt;br /&gt;
* write regexp that matches both names: old and new one, and set EmailSubjectTagRegex option&lt;br /&gt;
&lt;br /&gt;
For example old name is &amp;lt;code&amp;gt;old.name&amp;lt;/code&amp;gt; and new one is &amp;lt;code&amp;gt;new.name&amp;lt;/code&amp;gt;, then your config should look like:&lt;br /&gt;
&lt;br /&gt;
 Set($rtname, &amp;#039;new.name&amp;#039;);&lt;br /&gt;
 Set($EmailSubjectTagRegex, qr/(?:old\.name|new\.name)/i);&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
This regular expression is required for some period of time only. Later you can delete this option when all active tickets will be using new subject line.&lt;br /&gt;
&lt;br /&gt;
=== Older versions ===&lt;br /&gt;
&lt;br /&gt;
* change the name in the rtname config option.&lt;br /&gt;
* set up an email filter that rewrite subjects or hack the [[EmailParser]] a little to understand the old value, so people don&amp;#039;t get errors if they send messages with the old rtname in the subject.&lt;br /&gt;
&lt;br /&gt;
In Postgres :&lt;br /&gt;
&lt;br /&gt;
update transactions set data = replace ( data, &amp;#039;&amp;amp;lt;OLDNAME&amp;amp;gt;&amp;#039;, &amp;#039;&amp;amp;lt;NEWNAME&amp;amp;gt;&amp;#039;) where data ~ &amp;#039;&amp;amp;lt;OLDNAME&amp;amp;gt;&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
update attachments set subject = replace ( subject, &amp;#039;&amp;amp;lt;OLDNAME&amp;amp;gt;&amp;#039;, &amp;#039;&amp;amp;lt;NEWNAME&amp;amp;gt;&amp;#039;) where subject ~ &amp;#039;&amp;amp;lt;OLDNAME&amp;amp;gt;&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>