How Can I Make This Redirect?

10 replies
I want to send someone a zip file with after they unzip I want 5 files in there. When they click on each it should take them to a website of my choice. How can I do this?
#make #redirect
  • Profile picture of the author Brandon Tanner
    Just use HTML files with META redirects in each one...

    HTML Code:
    <html>
      <head>
        <meta http-equiv="refresh" content="0;URL=http://www.website.com">
      </head> 
    </html>
    ^ Replace "website.com" with the actual URL you want to redirect to.
    Signature

    {{ DiscussionBoard.errors[8591546].message }}
  • Profile picture of the author blitz20
    I did this and it opens the file in dreamweaver or word
    {{ DiscussionBoard.errors[8591645].message }}
    • Profile picture of the author Brandon Tanner
      Originally Posted by blitz20 View Post

      I did this and it opens the file in dreamweaver or word
      Are you sure you're saving them as HTML files? If you do, they should open in your browser (unless you at some point in the past specified Dreamweaver or Word to be the default program to open HTML files). For most people though, HTML files will open in their browser by default.
      Signature

      {{ DiscussionBoard.errors[8592038].message }}
    • Profile picture of the author Delta90
      Originally Posted by blitz20 View Post

      I did this and it opens the file in dreamweaver or word
      Right click the file and at the bottom select properties. Look at where it says Filetype: it should show something like (.html) or (.htm) if it doesn't you need to resave the file as filename.html. But if it says .html or .htm you'll probably see that under Open with: you have either dreamweaver or word, press the Change button next to it and select your browser.
      {{ DiscussionBoard.errors[8592163].message }}
  • Profile picture of the author topnichewebsites
    Can you copy and paste the line you used for this, what did you replace it with

    <meta http-equiv="refresh" content="0;URL=http://www.website.com">
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[8591764].message }}
  • Profile picture of the author ernestrategos
    Type this snippet of JavaScript code inside each page, substituting your desired location.


    Code:
    <script type="text/javascript"> window.location = "http://www.google.com/" </script>
    Signature
    {{ DiscussionBoard.errors[8592460].message }}
    • Profile picture of the author Brandon Tanner
      Originally Posted by ernestrategos View Post

      Type this snippet of JavaScript code inside each page, substituting your desired location.


      Code:
      <script type="text/javascript"> window.location = "http://www.google.com/" </script>
      ^ IE blocks local Javascript from running by default, so IE users would have to know to click the "allow blocked content" button for that to work.

      Using a regular HTML meta redirect is the simplest solution.
      Signature

      {{ DiscussionBoard.errors[8592528].message }}
      • Profile picture of the author ernestrategos
        Hello Brandon. Thanks for your help, what you say is completely correct and I found a workaround to tell IE the content is safe.

        I'm updating the code, I tested it on IE10 on Win7 and it works like a charm.

        Code:
        <!-- saved from url=(0014)about:internet -->
        
        <script type="text/javascript"> window.location = "http://www.google.com/" </script>
        Signature
        {{ DiscussionBoard.errors[8592601].message }}
        • Profile picture of the author Brandon Tanner
          Originally Posted by ernestrategos View Post

          Hello Brandon. Thanks for your help, what you say is completely correct and I found a workaround to tell IE the content is safe.

          I'm updating the code, I tested it on IE10 on Win7 and it works like a charm.

          Code:
          <!-- saved from url=(0014)about:internet -->
          
          <script type="text/javascript"> window.location = "http://www.google.com/" </script>
          I didn't know about that little trick. That's pretty cool.
          Signature

          {{ DiscussionBoard.errors[8592639].message }}

Trending Topics