strange problem

Discussion in 'Site & Server Administration' started by devin, Mar 25, 2006.

  1. #1
    i want to mask a redirect, so that when visitors type in the URL, they get redirected to the new URL without knowing it (the original URL stays in the address bar).

    my host gave me this script
    <HTML>
    <FRAMESET>
    	<FRAME src="http://new-redirect-destination.com">
    </FRAMESET>
    </HTML>
    Code (markup):
    and asked me to save it as index.html and place it in the root folder.

    i tried, but the masking works in IE but not in Firefox. In firefox the URL changes to reflect the new destiantion, and in IE it stays the original URL.

    any help here?
     
    devin, Mar 25, 2006 IP
  2. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #2
    I am not sure you want to do that even if you can get it to work. If you run a server header check it shows a 302 (temporary redirect) not the 301 which Google favors.

    Good luck working out your situation.
     
    Smyrl, Mar 25, 2006 IP
  3. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's called cloaking and it's a no-no.
     
    exam, Mar 26, 2006 IP
  4. intothemiddle

    intothemiddle Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Within a server side language such as ASP you could achieve an execute command like:
    4guysfromrolla.com/webtech/042602-1.shtml

    Which will show the page you want to, while maintaining the URL.

    Of course you didnt say which server platform you're on.

    You could try altering your frame set to contain 2 frames, which may stop the problem.

    <FRAMESET rows="1%, 99%">
    <FRAME src="empty.html">
    <FRAME src="http://www.site.com/mainsite.html">
    </FRAMESET>
     
    intothemiddle, Jan 23, 2007 IP