Streaming live at 10am (PST)

Possible to redirect?


#1

Can you make page redirect? For example I'd like example.com/beta to redirect testflightapp.com/join/looooongString


#2

@thelle, at the moment we do not support that functionality. We personally use services like http://bit.ly for short links that can be redirected anywhere, but realize that it may not be exactly what you're looking for.


#3

Not what I was hoping to hear wink, but thanks for the reply!


#4

Anyone who know of a workaround one could do to make redirect work? @bartekkustra perhaps?


#5

^^ I like it when people call my name when they are stuck with website ;D I feel so powerful ^^

$(document).ready(function() {
  curl = $(location).attr('href');
  if(curl == 'http://example.com/beta' || curl == 'http://www.example.com/beta' || curl == 'www.example.com/beta') {
    window.location.replace('testflightapp.com/join/looooongString');
  }
});

Should work. If not, please PM me.


#6

Thank you so much for your reply @bartekkustra, but where exactly to put it?


#7

Dashboard -> Custom Code -> second field (before </body>) smile

Don't forget <script> ...</script> before and after the code!!!


#8

Thanks a lot! It was the <script> part I didn't get - tried Custom code smile


#9

Works so beautifully! For any forum searchers out there: remember to add a blank site at the "from-part" of the redirect - (example.com/beta)


#10

Hi @bartekkustra

Is this the same as a 301 redirect? I would like to redirect my non-www to my www domain but it's not working and for sure my code will be wrong smile


#11

Hey @franz

Unfortunately, no.

// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");

// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";

This is not a 301 redirect, because jQuery is a browser-side script. 301 redirect requires a server-side.


#12

Hi @franz, @thelle, @bartekkustra,

We just released platform support for site redirects. See here:


#13

Hey - I would like to do a temporary redirect - 302-redirect. This is becuase I am changing the name of my domain but I am keeping the exact same site.

How would I go about doing that? Any ideas? @bartekkustra sorry you seem to know what your on about smile


#14

@LittleFishHerts
Thanks for saying that, Lindsey ;). I'm trying to be helpful if it's my field of knowledge. Unfortunatelly you can't 302 redirect from JavaScript, but only php or .htaccess to which we have no access. There is only 301 redirection in Dashboard.

I'm all about that bass, 'Bout that bass, no treble

@brryant would it be a problem to add 302 redirection as well to dashboard? A little tip on what's the difference would be awesome as well in the dashboard.


#15

Ha ha thank you! il look up how to do a perm redirect then


#16

are you trying to redirect a webflow solution
or a self-hosted solution...


#17

the link on that page gives a 404 error!


#18

Just fixed it! The correct link is here: http://help.webflow.com/faq/how-to-redirect-an-old-url-to-a-page-in-your-webflow-site


#19

Hi Bryan
Currently we are converting our Umbraco site to a webflow.com site. However some of the stuff that used to be on our site www.site.com/blog is now on blog.site.com and what used to be on www.site.com/support is now on support.site.com. Can I add custom redirects to my webflow.com site as well, even the target page is "outside" my webflow.com site?

eg. www.site.com/blog/2015/09/28/a-new-newsstory.html
should get a 301 redirect to:
blog.site.com/2015-09-28_a_story_with_the_same_content_but_different_url.html

I have around 400 pages I need to do this with, so looking for a smart way.


#20

Any news on this one? Should be easy for your guys to allow redirects to outside sites as well...?

May be could be easily solved with the new CMS feature?