Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Default to home page

Reply
Thread Tools

Default to home page

 
 
Centaur
Guest
Posts: n/a
 
      06-09-2004
Hi all

In making web pages other than the home page index.htm is there any way of
putting code in all the other pages so that if someone enters the site other
than by the home page, it automatically opens the home page, so that
navigation can start from there.

Thank you, to all who reply in anticipation.

Centaur


 
Reply With Quote
 
 
 
 
Matthias Gutfeldt
Guest
Posts: n/a
 
      06-09-2004
Centaur wrote:
>
> In making web pages other than the home page index.htm is there any way of
> putting code in all the other pages so that if someone enters the site other
> than by the home page, it automatically opens the home page, so that
> navigation can start from there.


Check the referrer, and if it's not your homepage, send them to the
homepage. This can be done with a setting in the server configuration.

But I think it's a very bad idea. What problem are you trying to solve?


Matthias

 
Reply With Quote
 
 
 
 
Dennis M. Marks
Guest
Posts: n/a
 
      06-09-2004
In article <>, Centaur <>
wrote:

> Hi all
>
> In making web pages other than the home page index.htm is there any way of
> putting code in all the other pages so that if someone enters the site other
> than by the home page, it automatically opens the home page, so that
> navigation can start from there.
>
> Thank you, to all who reply in anticipation.
>
> Centaur
>
>

Check document.referrer for the home page.
If not equal then set document.location.href to the home page.

--
Dennis Marks
http://www.dcs-chico.com/~denmarks/
Mail to the return email address is bounced.
Go to web site for active email address.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
Karl Groves
Guest
Posts: n/a
 
      06-09-2004

"Centaur" <> wrote in message
news:...
> Hi all
>
> In making web pages other than the home page index.htm is there any way of
> putting code in all the other pages so that if someone enters the site

other
> than by the home page, it automatically opens the home page, so that
> navigation can start from there.


Why would you want to do that?
In doing so, you're inconveniencing users who've bookmarked a particular
page that interested them or who were referred to the page by a friend.

-Karl


 
Reply With Quote
 
Andrew Urquhart
Guest
Posts: n/a
 
      06-09-2004
*Dennis M. Marks* wrote:
> In article <>, Centaur <>
> wrote:
>> In making web pages other than the home page index.htm is there any
>> way of putting code in all the other pages so that if someone enters
>> the site other than by the home page, it automatically opens the
>> home page, so that navigation can start from there.

>
> Check document.referrer for the home page.
> If not equal then set document.location.href to the home page.


Anything involving the optional HTTP referrer like this is going to work
really badly for those folks with certain browsers, 3rd party software
and firewalls that are set to not send/block referrers.

The OPs question is commonly seen in relation to frame-based navigation
and the issue of users arriving at pages without the navigation frame
attached. If this is the reason for the redirect then there are
alternative methods of globally including repetitive blocks. For example
via server-side includes (SSI).
--
Andrew Urquhart
- FAQ: www.html-faq.com
- Archive: www.google.com/groups?q=alt.html
- My reply address is invalid, use: www.andrewu.co.uk/contact/


 
Reply With Quote
 
Centaur
Guest
Posts: n/a
 
      06-10-2004
HI Mattias

My web site uses frames, however, I notice from the web log, somtimes people
are entering on pages such as the "Answers" page to FAQ, or even some
products page. Now people arn't likelt to buy anything if they don't know
who they are buying form - some people of coarse can look atthe url and
reduce it to its lowest level ie www.mysite.com, but i was hoping I can save
people the problem, so long as it does'nt cause me other navigational
problems. I didnt really want to plague each page withe a "If you arrived on
this page then click here to star" or similar

May I ask why iys a bad idea please,

Best wishes and thank you for replying

Centaur


"Matthias Gutfeldt" <say-no-to-> wrote in message
news:...
> Centaur wrote:
> >
> > In making web pages other than the home page index.htm is there any way

of
> > putting code in all the other pages so that if someone enters the site

other
> > than by the home page, it automatically opens the home page, so that
> > navigation can start from there.

>
> Check the referrer, and if it's not your homepage, send them to the
> homepage. This can be done with a setting in the server configuration.
>
> But I think it's a very bad idea. What problem are you trying to solve?
>
>
> Matthias
>



 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      06-10-2004
On Thu, 10 Jun 2004 13:34:21 +1000, Centaur <>
declared in alt.html:

> My web site uses frames
> May I ask why iys a bad idea please,


http://html-faq.com/htmlframes/?framesareevil
http://homepage.ntlworld.com/l_vajzo...eb/frames.html
http://dorward.me.uk/www/frames/
http://www.google.com/webmasters/2.html (see under "Your page uses
frames")

BTW: Please don't post upside down.
http://www.allmyfaqs.com/faq.pl?How_to_post

This will help:
http://home.in.tum.de/~jain/software/oe-quotefix/

--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
Eric Bohlman
Guest
Posts: n/a
 
      06-15-2004
"Karl Groves" <> wrote in
news:ca76m6$2p$:

>
> "Centaur" <> wrote in message
> news:...
>> Hi all
>>
>> In making web pages other than the home page index.htm is there any
>> way of putting code in all the other pages so that if someone enters
>> the site

> other
>> than by the home page, it automatically opens the home page, so that
>> navigation can start from there.

>
> Why would you want to do that?
> In doing so, you're inconveniencing users who've bookmarked a
> particular page that interested them or who were referred to the page
> by a friend.


Not just them. You're also virtually guaranteeing that anyone who finds
you through a search engine will land on your home page, which won't
contain what they were searching for. And that virtually guarantees that
the user will go back to the search engine and try somebody else rather
than trying to search for it on your site. And if they do stick around,
their trust in you has probably been lowered; after all, sleazy operations
are well-known for trying to make their sites come up on searches for
unrelated things.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initial class name for Default page is _Default instead of Default Sean Dockery ASP .Net 3 06-21-2009 04:30 AM
How to change "Default" home page in INternet Explorer? John S NZ Computing 9 07-31-2006 12:29 AM
Why is Default.aspx not present in the Default Content page? Gaetan ASP .Net 3 02-14-2006 07:24 PM
Deleting Yahoo as default browser home page SysAssist Computer Support 2 01-19-2006 06:50 AM
When I open Internet Explorer, along with my home page a pop page pops up, I have changed home page but that doesnt work Phil Computer Support 7 03-04-2004 12:22 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57