Redirect to Home Page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • OC

    Redirect to Home Page

    Hi - I would appreciate some help with a script. I know I've seen something
    like it but didn't need it at the time, and now I can't find it. It seems
    there are some links on other websites that point to a page other than my
    index.htm page. If a viewer tries to enter my site on certain pages, I would
    prefer to redirect them to http://www.mywebsite.com/index.htm. How do I do
    that without completely klutzing up navigation between pages within my
    website? I am not using any FRAMES pages. Thanks, ~OC~


  • kaeli

    #2
    Re: Redirect to Home Page

    In article <n73_c.4185$ay. 547016@twister. southeast.rr.co m>,
    oc@sc.rr.nonono no.com enlightened us with...[color=blue]
    > Hi - I would appreciate some help with a script. I know I've seen something
    > like it but didn't need it at the time, and now I can't find it. It seems
    > there are some links on other websites that point to a page other than my
    > index.htm page. If a viewer tries to enter my site on certain pages, I would
    > prefer to redirect them to http://www.mywebsite.com/index.htm. How do I do
    > that without completely klutzing up navigation between pages within my
    > website? I am not using any FRAMES pages. Thanks, ~OC~
    >
    >
    >[/color]

    These sorts of scripts are best done on the server-side by checking the
    document referrer and doing a redirect. You can do it with JS, too, but it
    won't work for non-JS enabled clients and it takes more time (often
    negligable, but not always), since the client has to essentially load two
    pages instead of one.

    Not that I agree with the concept, FWIW. I find redirects extremely
    irritating on most sites that use them. Usually takes me forever to find the
    page I was interested in again. YMMV, as I have no clue what your site is or
    who uses it. :)

    HTH

    --
    --
    ~kaeli~
    Synonym: the word you use in place of a word you can't
    spell.



    Comment

    Working...