Multiple subdomains forwarding to subpages?

I’m having a challenge finding out if it’s possible to have various subdomains in GoDaddy foward to subpages in Webflow website. So;

subdomain1.domain.com > forwards to > domain.com/folder/subpage-1
subdomain2.domain.com > forwards to > domain.com/folder/subpage-2
subdomain3.domain.com > forwards to > domain.com/folder/subpage-3
etc.

I THINK GoDaddy provides this option with their Subdomain Forwarding - but the problem is, they automatically add their own IP Address to it - it seems we can’t add the correct IP to forward to Webflow’s required IP.

Anyone had any luck with this before?

I’ve done this before and the way I’ve done it is adding the internal IP of my provider to the one that subdomain points to and then create an internal redirect of that subdomain to the actual domain (subpage) I want to redirect.

I hope this makes sense.

We made that too but we are able to use only the public webflow.io addresses, not the paid domain address as target pages for remapped subdomains. It would be nice if within a single project we could use subdomains at URLs within Weblfow system. That would be professional looking solution. Within a single paid project.

https://demo.tietoa.io >>> https://tietoa-finland-oy.webflow.io/
https://ar.tietoa.io >>> Home-AR
and so on

You can first point out the traffic (https://ar.tietoa.io) to your own server into index.html file like this:

<!DOCTYPE html>
<html lang="fi">
  <head>
	<meta http-equiv="refresh" content="0; URL='https://tietoa-finland-oy.webflow.io/ar/home-ar'" />
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="shortcut icon" href="TemplateData/favicon.ico">
  </head>
  <body> 
  </body>
</html>

Which will do the redirect to your final URL destiantion in 0 seconds delay as set above. This works ok with the public Webflow links but we would prefer to have it work within same single project where we have multiple subcategories as multiple subdomains visible at URLs like https://ar.tietoa.io/

And this is how the redirect rule is set on the .htaccess file on our server:


note: initial commands

Options +FollowSymLinks
RewriteEngine on

note: redirect the URL into a new folder path where the index.html file is waiting to do the final redirect to Webflow

RewriteCond %{HTTP_HOST} ^ar.tietoa.io$ [NC]
RewriteRule ^((?!_ar/).*)$ /_ar/$1 [L,NC]


This site helps you to test your .htaccess rules:

following two posts show more information (screen shots)

DNS settings for the ar.tietoa.io subdomain > directs to our server > where the .htaccess rule picks the traffic > redirects to folder and file: …/_ar/ where index.html file is waiting for redirect to Webflow site “subdomain” page(s).

I solved this by adding custom code to the head tag (Custom code in head and body tags - Webflow University Documentation):

<script>
  if (window.location.hostname === 'subdomain1.domain.com') {
    window.location.href = 'https://www.domain.com/folder/subpage-1';
  } else if (window.location.hostname === 'subdomain2.domain.com') {
    window.location.href = 'https://www.domain.com/folder/subpage-2';
  } else if (window.location.hostname === 'subdomain3.domain.com') {
    window.location.href = 'https://www.domain.com/folder/subpage-3';
  }
</script>