Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Tuesday, August 3rd at 3pm PST / 6pm EST. Learn more
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forwarding subdomain of Domain A to subdomain of Domain B

Hi there,


I have a business with a long URL, lets call it  All of my customer sites get a new subdomain of this e.g.


I've recently purchased a much shorter URL, lets call it  I'd like to dynamically forward routes to any subdomain of to the longer URL without having to setup DNS or forwarding entries for all subdomains.


Does this make sense, and is this achievable?


Essentially I want a user to be able to browse to and be redirected to


Many thanks in advance,




Hello @pwaddles!


Thank you for posting. You could probably use domain forwarding for this. Though, you would need to set each forward up individually, as far as I know. 


Heather - GoDaddy | Community Moderator
24/7 support available at

Here’s a standard script to redirect to a fixed domain:


$url =
header("Location: $url");
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META http-equiv="Refresh" content="0;url=<?php print $url; ?>">
<TITLE>Sam Trenholme tweet redir</TITLE></HEAD><BODY>

This web page should go to the link.
If not, <A href="<?php print $url; ?>">go here</A>.

If we just have every single subdomain of go here, we can make the above file be index.php, and make sure the web server is configured to have all of the subdomains of use a document root with the above file as index.php.