Newbie Help - Control Access Of Which Page A 'Viewer' Enters

S

Scooby Jones

Hello

I hope you can help.

I have designed a website for a friend (www.johnachterberg.com) which uses
frames and if accessed through the above page works OK.

If however, you do a google for (john achterberg academy) and click on the
link it takes you into that page within the site but you miss out the frames
and all of the site navigation.

Is there any way of controlling how users access the site -

so that they always go through the main page first, or

so that the index / frames are displayed on every page?

Many thanks in advance,

Carl.
 
N

Nicholas Savalas - http://savalas.tv

Dear Mr. Jones,

While there are many reasons why you should not use frames (like search
engines see the following code as your entire home page, which is not
good:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>John Achterberg</title>
</head>
<frameset rows="162,*" frameborder="no">
<frame name="header" scrolling="no" noresize target="main"
src="navbar.htm">
<frame name="main" src="welcome.htm" target="_self">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>

....there is a fast way to make sure that pages such as navbar.htm,
welcome.htm, etc. are not shown outside of their frameset. Put the
following code in between the <head> and the </head> tags on every page
EXCEPT index.htm:

<script language="javascript">
if(top==self) {
self.location.href='http://www.johnachterberg.com';}
</script>

This fast and dirty technique will at least get people to your complete
home page, rather than, say,

http://www.johnachterberg.com/english/academy.htm

Your friend's site needs much more than pictures and text, though, to
be successful - please consider helping your friend by reading:

http://www.webdeveloper.com/html/html_metatags.html
http://webxact.watchfire.com/
http://www.hypergurl.com/submit.html - &tc...

Your friend will appreciate your efforts. Good luck, Mr. Jones.

Nicholas Savalas - http://savalas.tv
 
R

RICHARD BROMBERG

I did a Google search on john achterberg academy and
it took me to http://www.johnachterberg.com/english/academy.htm

Here's a moderately simple solution .

First build a new web page called academy2.htm and put into it all the
original content of academy.htm .
DO NOT USE FRONT PAGE TO RENAME academy.htm because it will attempt to
adjust other links in the site to reflect the change.

Next change any hyperlinks that point to academy.htm so they will point to
academy2.htm .

Finally edit academy.htm and remove all the content and replace it with a
"redirect".
A "redirect" causes the page to close and transfer to another page. The
other page is , of course, the page where you want to begin.

Check out http://billstclair.com/html-redirect.html for an explaination of
redirecting. or go to google and look
for html redirect .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top