Support Questions:How to change custom application domain or tracking domain

From HasOffers

If you currently have a custom application domain or tracking domain setup and you want to change it, you will need to setup a website and use URL rewrites to redirect users to the new domain.

The HasOffers platform currently only supports one custom application domain and one custom tracking domain at any time. If one is changed, the old domain will immediately stop working.

Thus, you will need to setup redirects on a web server you have access to. The redirect will interpret all the requests and forward them to your new domain.

Contents

Update DNS for New Domains

You will first want to setup your new custom application and/or tracking domain(s) to point to the HasOffers platform. If you didn't setup the first custom domain(s) or don't remember how, read Domain Settings.

Setup URL Rewrites

This migration outlines how to setup URL rewrites with Apache. You will need to edit the Apache config file and include the lines of code below. Update the old domain and the new domain in the code.

Changing custom application domain:

RewriteCond %{HTTP_HOST} www\.OldApplicationDomain\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.NewApplicationDomain.com/$1 [L,R]

Changing custom tracking domain:

RewriteCond %{HTTP_HOST} www\.OldTrackingDomain\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.NewTrackingDomain.com/$1 [L,R]

You can learn more about this here: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Update DNS for Old Domains

Once the URL rewrites are setup on your server, you will need to update the DNS on the old application or tracking domain to point to the server you setup with the URL rewrites.

You'll want to make sure the new application and tracking domains resolve already to the HasOffers platform prior to changing the DNS on the old domains.

Update Domain Settings

After you've updated your DNS of the old domains to point to the redirect server, update the custom domain settings in your application to use the new domain(s).

 
Email this page to a friend or co-worker