Redirecting to an external URL only if there is a path

I’m interested in redirecting from the default route ("/") ONLY if there is a path. Is this possible?

Desired behavior:
User tries to go to ‘’ and they land on ‘’ which is a static site.
User tries to go to ‘’ and they land on ‘

Current attempt was adding this:

  from = "/*"
  to = ""
  status = 301
  force = false

The obvious problem with this is that EVERYTHING redirects. This makes sense, but how can I achieve the desired behavior?

You could add a rule above your rule which ensures that traffic to your homepage lands on your homepage. I haven’t tried this – hopefully it doesn’t create a redirect loop! :face_with_hand_over_mouth:

  from = "/"
  to = "" #you may want to change this to /index.html
  status = 200
  force = true

Thanks for the quick reply! But looks like that solution is :drake_shaking_his_head_no_meme:

Hey @potato,

The more I think about it, the rule you mentioned should work, as long as you have an index.html present in your publish directory.

Because you don’t force the rule, that means the site where the rule is applied will serve it’s own content if the page is available.

So… dumb question perhaps but do you have an index.html?