Can you make page redirect? For example I’d like example.com/beta to redirect testflightapp.com/join/looooongString
@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.
Not what I was hoping to hear , but thanks for the reply!
Anyone who know of a workaround one could do to make redirect work? @bartekkustra perhaps?
^^ 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.
Thank you so much for your reply @bartekkustra, but where exactly to put it?
Dashboard → Custom Code → second field (before </body>
)
Don’t forget <script>
…</script>
before and after the code!!!
Thanks a lot! It was the <script>
part I didn’t get - tried Custom code
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)
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
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.
Hi @franz, @thelle, @bartekkustra,
We just released platform support for site redirects. See here:
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
@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.
Ha ha thank you! il look up how to do a perm redirect then
are you trying to redirect a webflow solution
or a self-hosted solution…
the link on that page gives a 404 error!
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
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 Custom Application Development Software for Business - Salesforce.com is now on blog.site.com and what used to be on Custom Application Development Software for Business - Salesforce.com 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. Custom Application Development Software for Business - Salesforce.com
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.
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?