<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Light AI</title>
    <description>The latest articles on DEV Community by Light AI (@lightblog).</description>
    <link>https://dev.to/lightblog</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F766999%2Fe4888012-3dc1-4852-a608-a817482e1c41.jpg</url>
      <title>DEV Community: Light AI</title>
      <link>https://dev.to/lightblog</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lightblog"/>
    <language>en</language>
    <item>
      <title>Create a SlackBot using GitHub Actions + Light AI</title>
      <dc:creator>Light AI</dc:creator>
      <pubDate>Wed, 15 Jun 2022 04:34:59 +0000</pubDate>
      <link>https://dev.to/lightblog/create-a-slackbot-using-github-actions-light-ai-1gkg</link>
      <guid>https://dev.to/lightblog/create-a-slackbot-using-github-actions-light-ai-1gkg</guid>
      <description>&lt;h2&gt;
  
  
  What is a Github Action?
&lt;/h2&gt;

&lt;p&gt;The Official Github Definition of an Action is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows you to automate your build, test, and deployment pipeline. You can create workflows that build and test every pull request to your repository, or deploy merged pull requests to production.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Creating a SlackBot for Github
&lt;/h3&gt;

&lt;p&gt;We are going to create a SlackBot for Github, This SlackBot is going to send us a message in to our slack channel every time a pull request is made. &lt;/p&gt;

&lt;h3&gt;
  
  
  Understanding Our Workflow
&lt;/h3&gt;

&lt;p&gt;Let's break down everything that is happening in the GitHub Actions workflow&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuring our Github Action
&lt;/h2&gt;

&lt;p&gt;Create a New Project or go to an Existing Project &lt;/p&gt;

&lt;p&gt;Click &lt;code&gt;Add File&lt;/code&gt; and then Click &lt;code&gt;Create New File&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now let's add our Workflow, Copy and Paste the Following:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.github/workflows/slackbot.yml&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating our Workflow
&lt;/h3&gt;

&lt;p&gt;To generate this workflow I am going to use the &lt;a href="https://lightai.dev"&gt;Light AI&lt;/a&gt; Beta, to generate the GitHub Action, this will save me some time. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8TxnHpJb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/of5rv5dkno2al9m6tstn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8TxnHpJb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/of5rv5dkno2al9m6tstn.png" alt="Light AI Beta Preview" width="880" height="537"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'll Select Github Actions in Light Docs and type &lt;code&gt;Create a GitHub Actions that sends a slack notification on a pull request&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6JHSpIg6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/js6j8psjtqyjlnnak286.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6JHSpIg6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/js6j8psjtqyjlnnak286.png" alt="Light Docs Output" width="866" height="955"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We will copy and paste the output from the Light Docs™ into our workflow. To better understand what is happening I will take the time to breakdown the workflow&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: SlackBot for Pull Requests 

  push:
    branches:
      - main
  pull_request:
    branches: [ "main" ]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here we are giving a name for the Github Action and Specifying the Branch for our PR&lt;/p&gt;

&lt;h3&gt;
  
  
  Adding Jobs and Builds
&lt;/h3&gt;

&lt;p&gt;A Workflow can be made up of many jobs-in this case we are only using a single job called Build.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jobs:
 build:
  runs-on:ubuntu-latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Steps and Checkout
&lt;/h3&gt;

&lt;p&gt;Here we just add one step, which checkout's our code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;steps:
 - name: Check out Code 
   uses: actions/checkout@v2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Adding your Slack API Key + Workflow
&lt;/h3&gt;

&lt;p&gt;Now you will need a slack account for this last step to work. This part can be a little tricky.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; -name: Slack Notifcation 
    uses: rtCamp/action-slack-notify@master
    env:
      SLACK_WEBHOOK_URL:${{secrets.SLACK_WEBHOOK_URL}}
      MESSAGE: "A Pull Request was Made!!"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Here is the complete Github Action so your &lt;code&gt;.yaml&lt;/code&gt; is written correctly.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: Slack Notification on Pull Request

# Controls when the workflow will run
on:
  # Triggers the workflow on pull request events but only for the "main" branch
  push:
    branches:
      - main
  pull_request:
    branches: [ "main" ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    - name: Check out code
      uses: actions/checkout@v2

    # Sends a Slack notification
    - name: Slack Notification
      uses: rtCamp/action-slack-notify@master
      env:
        SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK}}
        MESSAGE: "A new pull request was made!"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that we have this Workflow, if we commit this we will end up with a failed build. We will fix this in the next section.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create a Github Secret and Install WebHooks
&lt;/h3&gt;

&lt;p&gt;Now we need to create a &lt;code&gt;Github Secret&lt;/code&gt; so that we aren't exposing our &lt;code&gt;Slack WebHook&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Let's go to our &lt;code&gt;repo&lt;/code&gt; and click &lt;code&gt;settings&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You will need to click &lt;code&gt;create a new repository secret&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Name the &lt;code&gt;Secret&lt;/code&gt; &lt;code&gt;SLACK_WEBHOOK&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Go to your &lt;code&gt;slackurl/apps&lt;/code&gt;. In this instance it will be &lt;code&gt;light.slack.com/apps&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--R-LyXhif--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09fr4rhj8jlje2aplf7h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--R-LyXhif--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09fr4rhj8jlje2aplf7h.png" alt="Slack App Directory" width="880" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now go down to the search bar and type &lt;code&gt;Incoming WebHooks&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--df-gsCh_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xau3mi74mgyvmlzbq08d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--df-gsCh_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xau3mi74mgyvmlzbq08d.png" alt="Incoming WebHooks" width="880" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Click &lt;code&gt;Add to Slack&lt;/code&gt; and select your Workspace&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aVeXXLkL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/80fyddpc24x7326yjocb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aVeXXLkL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/80fyddpc24x7326yjocb.png" alt="Add to Slack" width="880" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click &lt;code&gt;Add Incoming WebHook Integration&lt;/code&gt; You will be directed to a page where you will see your &lt;code&gt;WebHook URL&lt;/code&gt;.Copy and paste that URL and go back to your Github Repo&lt;/p&gt;

&lt;p&gt;The URL will be towards the bottom and look something like this &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hk-43JPf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7p2cflxsomithilzs8ts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hk-43JPf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7p2cflxsomithilzs8ts.png" alt="WebHook URL" width="880" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click &lt;code&gt;Settings&lt;/code&gt; and then go down and click &lt;code&gt;Secrets&lt;/code&gt; and then &lt;code&gt;Actions&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3DEWFf2t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w85ws4i7rzugup0ybu27.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3DEWFf2t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w85ws4i7rzugup0ybu27.png" alt="GitHub Actions" width="325" height="212"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click &lt;code&gt;New Repository Secret&lt;/code&gt; and then add the WebHook URL you just copied &lt;/p&gt;

&lt;p&gt;It should look like this &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--biTIm4A5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jldwireewqkjwecrq3rh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--biTIm4A5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jldwireewqkjwecrq3rh.png" alt="New Repo Secret" width="880" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let's clone our repo and open it in visual studio code &lt;/p&gt;

&lt;p&gt;First let's pull our latest changes &lt;code&gt;git pull&lt;/code&gt;, Then let's create a new branch so we can test our pull request feature&lt;br&gt;
&lt;code&gt;git checkout -b slack-branch&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now let's use an empty commit to trigger the Github Action&lt;br&gt;
&lt;code&gt;git commit --allow-empty -m "dev: empty commit for testing"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;We should see your Github Action running and Completed. Once complete go to your Slack and make sure you see the SlackBot notification on the channel you selected earlier in the setup process&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nxv0wXcv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bsz3dypyk9bczdh3mmgn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nxv0wXcv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bsz3dypyk9bczdh3mmgn.png" alt="Slack Notification" width="880" height="612"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we need to update the Workflow because it's currently setup to only work on a push and a pull and we only want this to work on pull requests so we are notified when someone on our team has made a PR&lt;/p&gt;

&lt;p&gt;This is the updated flow without the push trigger.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: Slack Notification on Pull Request

# Controls when the workflow will run
on:
  # Triggers the workflow on pull request events but only for the "main" branch
  pull_request:
    branches: [ "main" ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    - name: Check out code
      uses: actions/checkout@v2

    # Sends a Slack notification
    - name: Slack Notification
      uses: rtCamp/action-slack-notify@master
      env:
        SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK}}
        MESSAGE: "A new pull request was made!"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On your next GitHub commit you will see a Pull Request. Click &lt;code&gt;create a pull request&lt;/code&gt; or &lt;code&gt;new pull request&lt;/code&gt;. Click &lt;code&gt;Commit Changes&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You Should now see a slack notification! &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GhojM-0V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgr7t0iomlk3c8iub0v6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GhojM-0V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgr7t0iomlk3c8iub0v6.png" alt="New Pull Request-Github" width="880" height="170"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Congratulations you just created a SlackBot using GitHub Actions + Light AI &lt;/p&gt;

&lt;h2&gt;
  
  
  Credit:
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Github Actions Output Generated by &lt;a href="https://lightai.dev"&gt;LightAI&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/lightai"&gt;Request Early Access&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you have any questions/thoughts for us, please reach out at &lt;a href="mailto:hello@lightaibeta.com"&gt;hello@lightaibeta.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>discuss</category>
      <category>github</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Redirect a Domain in Webflow</title>
      <dc:creator>Light AI</dc:creator>
      <pubDate>Fri, 10 Jun 2022 01:54:27 +0000</pubDate>
      <link>https://dev.to/lightblog/how-to-redirect-a-domain-in-webflow-23ae</link>
      <guid>https://dev.to/lightblog/how-to-redirect-a-domain-in-webflow-23ae</guid>
      <description>&lt;h2&gt;
  
  
  What is No-Code?
&lt;/h2&gt;

&lt;p&gt;The Wikipedia Definition of No-code is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;No-code development platforms allow programmers and non-programmers to create application software through graphical user interfaces and configuration instead of traditional computer programming.&lt;br&gt;
(&lt;a href="https://en.wikipedia.org/wiki/No-code_development_platform"&gt;https://en.wikipedia.org/wiki/No-code_development_platform&lt;/a&gt;)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;No-code tools such as Webflow have grown in popularity and as they grow in popularity, developers try to push the limits of what these tools can do.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you are building a website in Webflow, you might start with a domain like we did &lt;code&gt;https://lightaibeta.com&lt;/code&gt; and realize you want to change that domain (like we did) to &lt;code&gt;https://lightai.dev&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You have a few options outside of Webflow and it's unclear what is the easiest way to go about it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Redirecting Root Domain Outside of Webflow
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create a page rule or redirect rule inside of your DNS to the &lt;code&gt;New domain&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can also use services similar to Azure Front Door (&lt;a href="https://docs.microsoft.com/en-us/azure/frontdoor/front-door-url-redirect?pivots=front-door-standard-premium"&gt;https://docs.microsoft.com/en-us/azure/frontdoor/front-door-url-redirect?pivots=front-door-standard-premium&lt;/a&gt;)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;However there is a much easier way to create redirect rule for Webflow websites, right inside of Webflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Redirect your old domain to your new domain
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;First select your &lt;code&gt;Project&lt;/code&gt;, open the &lt;code&gt;Dashboard&lt;/code&gt; and click &lt;code&gt;Hosting&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cnKIn55g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sk3v570bogf4fa3p44jb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cnKIn55g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sk3v570bogf4fa3p44jb.png" alt="Webflow Dashboard" width="880" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Scroll Down to add your &lt;code&gt;Custom Domain&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--R48VacbB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ghw8cs8g6roqaxdf8vd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--R48VacbB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ghw8cs8g6roqaxdf8vd.png" alt="Webflow Hosting" width="880" height="349"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Click &lt;code&gt;Add Domain&lt;/code&gt; and add your &lt;code&gt;New Domain&lt;/code&gt; without deleting your &lt;code&gt;Original Domain&lt;/code&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JRwvAxeB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1skip3t14wjzdvwvv8a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JRwvAxeB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1skip3t14wjzdvwvv8a.png" alt="Both Domains Added to Webflow" width="880" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once both domains are added, highlight your mouse over your &lt;code&gt;Primary Domain&lt;/code&gt; that you want the redirect to go to and click &lt;code&gt;Make Default&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;It's best practice to select the domain with the &lt;code&gt;www&lt;/code&gt; extension as your default.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9jOHUsh2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2828yx0lphp5ti24642c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9jOHUsh2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2828yx0lphp5ti24642c.png" alt="Select Default Domain in Webflow" width="880" height="299"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Lastly, you need to &lt;code&gt;Publish&lt;/code&gt; the changes in order for this redirect to take effect. Make sure you select all domains available &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B6ZiiDBb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v2ym1434an201tw80ozj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B6ZiiDBb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v2ym1434an201tw80ozj.png" alt="Publish Webflow Changes" width="506" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Congratulations 🎉, You have just setup a redirect rule inside of Webflow! &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
