Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - 1. How to redirect? 2. Meta tags
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closed1. How to redirect? 2. Meta tags

 Post Reply Post Reply Page  12>
Author
Croco Dylan View Drop Down
Newbie
Newbie
Avatar

Joined: 20 August 2003
Location: Netherlands
Status: Offline
Points: 34
Direct Link To This Post Topic: 1. How to redirect? 2. Meta tags
    Posted: 20 August 2003 at 4:13am

For a soon to be published websight I want visitors to always start at the root url. Browser should not show url of pages shown in frames, but must always be shown as www.croco.nl slash nothing. On the other hand, for to be shown on search engine results, I want bots to crawl as deep into my site as possible and will also handfeed url's  deeper than the root url. The problem is that when someone thru a search engine finds url other than the root (so let's say for instance http://www.croco.nl/water/waterintro/waterintro.htm) following this link would open the page in the completely window. And I don't want this, cause it's intended to be shown in a specific frame within my index page.

I could tell bots not to index the waterintro.htm and put all the meta tags in for instance /waterintro/index.htm (not exist). This page would contain nothing more than the meta tags (feed the search engines!) and a redirect to the root url of the websight, so that the page would load as intended, namely the root url and its frames.

Does anyone know if I can do this? Are the meta tags used in the /waterintro/index.htm any useful or do bots recognize the page as a redirect page and therefore don't index the page. Considering how annoying (endless) redirects and pop-ups can be, I can imagine some search engine have a policy of not indexing these pages. Anyone know of this, and if so how to fool the bots ?

All tips & trix welcome

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 20 August 2003 at 10:55am

<!-- ONE STEP TO INSTALL FORCE FRAMES:

  1.  Copy the coding into the HEAD of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  CodeLifter.com (support@codelifter.com) -->
<!-- Web Site:  http://www.codelifter.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
if (parent.location.href == self.location.href) {
// change the url below to the url of the
// frameset page...
window.location.href = 'index.html';
}
//  End -->
</script>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  0.73 KB -->

Back to Top
Croco Dylan View Drop Down
Newbie
Newbie
Avatar

Joined: 20 August 2003
Location: Netherlands
Status: Offline
Points: 34
Direct Link To This Post Posted: 20 August 2003 at 11:04am
Thanx, will try this
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 20 August 2003 at 6:14pm
You might also want to check out using .global.asa if to redirect any new sessions to your frameset. Don't know how it will impacr the search engines. Most of them have problems indexing sites that have a frameset for the root document.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Croco Dylan View Drop Down
Newbie
Newbie
Avatar

Joined: 20 August 2003
Location: Netherlands
Status: Offline
Points: 34
Direct Link To This Post Posted: 21 August 2003 at 7:12am

Mm, no comprende

Back to Top
Croco Dylan View Drop Down
Newbie
Newbie
Avatar

Joined: 20 August 2003
Location: Netherlands
Status: Offline
Points: 34
Direct Link To This Post Posted: 21 August 2003 at 7:37am

'Bout the search engines and frames remarkx

Couldn't I have an index.htm which is just simple noframes html, only meant for keywords, description etc. Tell bots to index this page and redirect to a frameset, let say dylan.htm. File dylan.htm doesn't need to be indexed and might consist of dylancontent.htm en dylanmain.htm

Of course, there's a limit when using such techniques. If I only have a few pages, which all redirect to the same ... than that might be useful. More pages to index for the search eng's. If I'd have let's say 2,000 pages which all redirect to the same root url ... than I wouldn't be surprised if they blacklisted my sight.

Any thoughts on this

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 21 August 2003 at 7:38am

global.asa is a text file that sits in your root directory. If it's present, it fires asp/vb subroutines when the application (web server) starts and stops and also when the session (A user comes to your site for the first time in this browser session) starts and stops.

The Application_OnStop and Session_OnStop are not reliable, but you can put any asp code your want into the Application_OnStart and Session_OnStart.

Putting the following code into the Session_OnStart subroutine will direct any new user to index.htm regardless of what uri they follow to your site.

Response.Redirect "/index.htm"

In asp.net, the file is called global.asax and can contain a couple of other subroutines like Page_OnLoad.

Two after thoughts...

A global.asa file can actually go into any directory and will apply to all subdirectories within that tree unless the sub directory has it's own global.asa.

For events in global asa to fire, a user must have session cookies enabled which they need for the forum anyway.

 



Edited by dpyers

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Croco Dylan View Drop Down
Newbie
Newbie
Avatar

Joined: 20 August 2003
Location: Netherlands
Status: Offline
Points: 34
Direct Link To This Post Posted: 21 August 2003 at 8:14am

Gotcha dpy

Thanx

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.