By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,964 Members | 1,810 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,964 IT Pros & Developers. It's quick & easy.

Redirect to Home Page

P: n/a
OC
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~
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <n7******************@twister.southeast.rr.com>,
oc@sc.rr.nononono.com enlightened us with...
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~


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.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.