inserting redirect html

  • 1
  • Question
  • Updated 7 years ago
  • Answered
Hello,

I would like to add a page to my Yola site that acts as a re-direct for an affiliate link. I have used the following HTML code on the page but it does not work:

It is supposed to be inserted between the header tags but am not sure how to do that so I just inserted a html widget onto the page.

Can anyone help?

Thank you.

Jim
Photo of Jim

Jim

  • 9 Posts
  • 0 Reply Likes
  • frustrated

Posted 9 years ago

  • 1
Photo of Jim

Jim

  • 9 Posts
  • 0 Reply Likes
the html code was
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
heres your code jim

<!--<meta htttp-equiv="refresh"content=2;url://webdesign.about.com"> -->

change the 2 to how ever long you want,

hope this helps,

alex
Photo of Jim

Jim

  • 9 Posts
  • 0 Reply Likes
Let me try again! The code is:
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
its not, the code i gave you above (with out the <!-- & -->)

thats just a load of letters to me.
Photo of Jim

Jim

  • 9 Posts
  • 0 Reply Likes
One more time! This is the code:

[html] [head] [meta http-equiv="refresh" content="0; url="affiliate link here"] [/head] [body] [/body] [/html]
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
you dont need the html, head or body tags - you are already in the body of the web page - just use the meta http-equiv="refresh" content="0; url="affiliate link here" -- thats all you need.

PS if you want to add code in this forum just wrap it in these <!-- CODE HERE -->
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hi Jim,
What Alex gave you above was code you could use which would redirect someone from a page on your site to an outside website automatically.

Is that what you are wanting to do?

If you put that code on your page and insert the url that you want to page to redirect to, when a person comes to that page they will automatically be taken to the url in the code.

To do this:

Drag and html widget (blue circle on the Content Sidebar) onto your page and past in this code, make sure to remove the <!-- and --> from the beginning and end. You don't need the html and head code that you have in yours above, just what is below.

<!--
<meta http-equiv="refresh" content=2; url=http://site.com">
-->

Where it says url=http://site.com, put in the url (affiliate link) you want the page to redirect to.

Let me know how this goes for you, or if this doesn't answer your question.

Emmy
Photo of ken

ken

  • 178 Posts
  • 1 Reply Like
need this help to and all it does is redirect to itself every 3 seconds

this is my code <!-- <meta http-equiv="refresh" content=2; url=http://www.dialogoo.com/jsn.php?id=0"> -->
Photo of Marije

Marije, Official Rep

  • 4636 Posts
  • 237 Reply Likes
Hi ken - I saw you were using the redirect on this thread (http://getsatisfaction.com/yola/topic.... Let us know if you still need help - if possible, can you post a link to the page where this is happening.
Photo of Jim

Jim

  • 9 Posts
  • 0 Reply Likes
Hello,

Thank you for the responses. I have entered the code as instructed and the page refreshes every few seconds but does not re-direct. I am not sure what I am doing wrong.

Jim
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Hi Jim,

Possibly a set of quotation marks missed or something not quite right with the code.

Delete the re-direct page, create it again. Change the delay to 30 seconds. Run it and check. The 30 secs delay will give you time to see the problem and fix it. When it's all working then change the delay to the 1 or 2 seconds.

The code once again: (Check all the characters in your code. Best to do it in notepad first)

<!--
<meta http-equiv="refresh" content=2; url=http://site.com">
-->

This snippet of code you can be very confident of. Widely used by Yola users for sure.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
The code is missing a "

it should read:

<!--
<meta http-equiv="refresh" content="2; url=http://site.com">
-->

Hopefully that should do the trick! =)
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Thanks littleus. can't see for looking
Photo of ken

ken

  • 178 Posts
  • 1 Reply Like
woo thanks guys everyone here rocks
Photo of Jim

Jim

  • 9 Posts
  • 0 Reply Likes
Thanks littleus, that did the trick!!!

Thanks to everyone for your responses-very much appreciated!

Jim
Photo of Chris

Chris

  • 7 Posts
  • 0 Reply Likes
Hi all, I was able to get the redirect to work, but I was unable to save and publish the page. It redirects in the WYSIWYG, and when I click save it gets stuck in an "Optimizing Images" loop. When I changed the content=" to 30, this was not a problem, but I obviously want the redirect to be as immediate as possible. Anyone come across this problem?
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hi Chris,
Yes, the page will redirect in the Sitebuilder so once the code is added it will begin to redirect. Can you try possible 3 as opposed to 30 and see if that makes a difference and allows you to save.

Emmy
Photo of Chris

Chris

  • 7 Posts
  • 0 Reply Likes
I changed the 30 to 5 and saved, but ideally I would like the redirect to be immediate. And now that 5 is saved, I cannot get into the html snippet, change to 2 or 3, and save before the sitebuilder redirects. Does it get caught up on "optimizing images" because it cannot find the images of the redirected site? If so, could I upload those images to help it along? Thanks for your quick reply!
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Chris

If there is nothing else on that page, can you delete your page from the Site Manager. Then, you can re-add the page, as well as the redirect code? I believe that will also address the "optimizing images" issue that you're seeing.

Please let us know how this goes.
Photo of Chris

Chris

  • 7 Posts
  • 0 Reply Likes
The page in question is the index, but since it will be redirecting to our new site, I suppose I could replace with a blank page. I will need to add that snippet to each page on our Yola site, correct?
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
If you are adding the snippet to your index page, then your users will not have time to peruse the other pages as they will be taken directly to your other site. So, it is not necessary to add the code to each page.
Photo of Chris

Chris

  • 7 Posts
  • 0 Reply Likes
I replaced my index with a blank one and added the snippet, set at 3. It works, technically, but it shows the blank template before redirecting, not very elegant. Is there no way to disable the siteviewer so I can set it at 1 and save without it loading the new site? The Optimizing Images problem persists.

Thank you for your quick help.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Chris

Can you please share with us your URL? Also, if you wish to redirect instantly, it needs to be set at 0. Where are you seeing the Optimizing Image problem? In your Sitebuilder or on your published site?
Photo of Chris

Chris

  • 7 Posts
  • 0 Reply Likes
the Yola url is www.healthyhappypets.com, which is a blank template that redirects after 3 seconds to www.metropetvetcleveland.com. I tried setting at 0, but that's what causes the optimizing problem (once it redirects in sitebuilder) upon clicking save and publish. If I could just disable the WYSIWYG option, I could save with 0 no problem.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Chris

Just thinking out loud here! If your healthyhappypets.com is a blank site, and you're trying to redirect to your metropetvetcleveland.com, perhaps it may make more sense if you just reassign your healthyhappypets.com to your other site so that both domains are pointing to the same site?

This way, if someone types in healthyhappypets.com - they will be taken automatically to your metropetvetcleveland.com site. If this is something that you're interested in trying out, please use these steps:

1. Log into your Yola account and click on "Advanced Settings" next to the site you would like the domain published to.
2. Next to "Add an existing domain", choose the domain name that you would like to assign to that site and click on "Add".

Please let us know if that helps to resolve the issue.
Photo of Chris

Chris

  • 7 Posts
  • 0 Reply Likes
This sounds like what I wanted to do in the first place. I wasn't aware Yola would let me do this without access to .htaccess. But I don't see the 'add an existing domain' in the advanced settings.



Thank you for your prompt and continued support through this process!
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hi Chris,
I think there was a bit of a misunderstanding. I see that your site published to the domain name metropetvetcleveland.com is an external site... so unfortunately the above will not work, that would require domain forwarding which we do not have.

Just so I am understanding the scenario. You have a site that was built outside of Yola published to metropetvetcleveland.com and you would like the domain name that you purchased from Yola to work with this site?

If that is the case, I think the best option would be to edit the A Records of your domain name with Yola to point towards your other host so that you can publish your other site to this domain as well.

Let me know what you think of that?
Photo of Chris

Chris

  • 7 Posts
  • 0 Reply Likes
Yes, I am currently developing metropetvetcleveland.com, hosted by web hosting hub, and would like anyone visiting healthyhappypets.com to be redirected there. I didn't think it would cause such a problem. Can you give me some instructions as to how to edit the A Records? I'll try anything.
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
What this would require is either changing your name servers or A Records to point towards your web hosts ip address. Can you contact your current web host and ask them what the process would be for you to use a domain name you have purchased elsewhere for a site you have built with them? Please then feel free to get back to us with what they have said and we can help further.