# What is Flexi Domain?

[Flexi Domain](https://flexidomain.in) is a SAAS tool that offers users the ability to associate multiple domains to the same website or application.

If you are an agency or a small business, you can use Flexi Domain to allow customers to add their own custom domain to your application.

<figure><img src="/files/TjHaWTm0BOKovTV1s8hY" alt=""><figcaption></figcaption></figure>


# Creating a project

Projects inside Flexi Domain are nothing but your main website url to which you want to add your domains. This can be your Wordpress website, Webflow website, Softr application or even a custom coded application written in PHP, Python etc.

{% hint style="warning" %}
**Note:** Applications created on **bubble.io** are not supported yet due to their CORS policy. But we may be introducing iFrame method to use bubble apps as well in the future.
{% endhint %}

Once the project is setup properly, you are good to go with adding multiple domains to this project.

Below are the steps to create a project in Flexi Domain.

1. On your dashboard, click **'Create Project'.**

<figure><img src="/files/8kXrfmmcQAgToXOlkMMz" alt="" width="563"><figcaption><p>Create a new project in flexi domain</p></figcaption></figure>

2. **Fill out your project name and project domain** and click Add. \
   Under project domain, you need to input your main website url, such as your Webflow or Wordpress website, or a custom coded website url. Please make sure these website are LIVE and running on internet.

<figure><img src="/files/BhvYrZv2QUkV8ohRbN2A" alt="" width="563"><figcaption><p>Create project in flexi domain</p></figcaption></figure>

{% hint style="info" %}
Note:&#x20;

1. Project domain is your main website url. It can be your Wordpress, Webflow, Soft or a custom coded website url.

2. Make sure this website is LIVE and running on internet.

3. Domain should be added with an *https\://*
   {% endhint %}

4. You will receive a [**Domain Verification message**.](/project-setup/domain-ownership-verification)

<figure><img src="/files/FvW6PE7RXYzTGtfE9aAE" alt="" width="563"><figcaption><p>Domain verification | Flexi Domain</p></figcaption></figure>

Simply copy-paste the code that you get, inside your website header and publish your website with this change.

This is the most crucial step to verify if you are actual owner of the domain you are trying to whitelabel.

4. Now, come back and create the project again. This time the project should be created without any warnings.


# Domain ownership verification

When you create a particular project for the first time, you will receive a message to first verify your domain ownership and then re-create your project. This is a mandatory step to prevent any kind of spam and illegal whitelabeling of urls that you don't own.

**To verify your domain ownership:**

1. Copy the meta tag that gets displayed on your screen.
2. Paste that tag inside your website header, just before the body.
3. Save and publish your website to implement this change.
4. Now, come back to Flexi Domain and try [re-creating the same project again.](/project-setup/creating-a-project) This time, their will be no warnings and your project will be created successfully.


# Adding a domain to a project

When you have successfully created a project, you can now start adding custom domains and subdomains to your project. These can be your client domains that you want to associate with your project. When configured correctly, these domains will serve the data from your main project domain without displaying the project domain url.\
So, the domain will be different but the content will be served from the project domain.

Follow below steps to add a domain/subdomain to your project in Flexi Domain.

1. **Click on the project** you want to add domains to. You will see two options:\
   \- Add Domains\
   \- Delete the project
2. Click on **Add Domains**

<figure><img src="/files/E3upK4eRH0Kbw7mg8iXH" alt="" width="563"><figcaption><p>Add domains in Flexi Domain</p></figcaption></figure>

3. A new page will open to add domains. This page will also display all your existing domains (if you have added any). Click on 'Add Domain'. &#x20;

<figure><img src="/files/kNUoAuLM9GGb5Osw36iQ" alt="" width="563"><figcaption></figcaption></figure>

Enter the url correctly. This can be your client domain or just yours. Click Save.

<figure><img src="/files/fYSnDF5bzcslLUtLyZKH" alt="" width="563"><figcaption><p>Adding domain to Flexi Domain</p></figcaption></figure>

4. Done. Your domain has been added. Now, you just need to create an A record in your domain provider and point to the IP address displayed on your screen.

<figure><img src="/files/Vrvasg8Zc4tF4PMDXAdT" alt="" width="563"><figcaption><p>Create A record in flexi domain</p></figcaption></figure>

{% hint style="info" %}
Note: It can take from couple of minutes to 24 hours for your domain to get properly migrated. Please be patient during this time.
{% endhint %}


# Creating domain redirections

There are scenarios when you don't want your users to land on a particular page, but instead redirected to a different page altogether. for eg, if a user visits your landing page, you may first want to serve them with a Privacy Policy page. This is where domain redirections come into play.

A redirection redirects a user from one page to another, in the same website.

After [adding a domain inside your project](/custom-domains-setup/adding-a-domain-to-a-project), you can start creating redirections for this specific domain. It's an optional step and should ONLY be performed if really required. Else, it can cause issues with your website, such website going into a loop of redirects, etc.

Follow below steps to create a custom redirect.

1. **Click on the domain for which you want to create redirection**. Then choose 'Add redirection'.

<figure><img src="/files/aYBcXGQ7BIuT8tRJnfzC" alt="" width="563"><figcaption></figcaption></figure>

2. A new screen will open that will display all your existing Redirects, if any. Click on 'Add Redirect'. \
   Add the start point and destination point in that. It should start with '/'.\
   '/' signifies the root page of your website. And if you type '/privacy-policy', it signifies the privacy policy page of your website (it can be a different url for your website).\
   \
   So, decide the start point like when a user visits '/this-page', then redirect them to '/that-page'.

<figure><img src="/files/CYKxdw8wUFRWNjMsBr4F" alt="" width="563"><figcaption></figcaption></figure>

This feature is very powerful, but at the same time should be used with caution.

{% hint style="danger" %}
Note:

1. Redirections should **ONLY** be performed if really required. Else, it can cause issues with your website, such website going into a loop of redirects, etc.
2. The source and destination page should start with '/'. \
   '/' signifies the landing page or the root page of your website.
   {% endhint %}


