Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Seach engine submittal is showing wrong page

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I have a site with frames on so there are actually 3 separtate html docs that make up the home page.

index.html
index1.html
index2.html

The search engines are just pointing directly to index1.html
so the frames do not show up nor is there any way to get to the rest of the site.

Can I create a redirect somehow so if someone comes there from a search engine it will load the default site and not that specific page.

<<< search engines point here
I would like it to redirect to here

TIA

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
You can set a session variable on your default (Home page). If the value is null when they get to index1, then response.redirect &quot;index.html&quot;

HTH
Erica
 
Sounds great Erica
Can you provide me with a snippet of code for that Please DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Ok I added this to my index1.html page but it still does the same thing. Which is display this page and not the whole site.

<html>
<%@ Language=VBScript %>
<%
If Session(&quot;FullPage&quot;) = True then
' Stay on this page
Else
' redirect to Home page
Response.Redirect &quot;End if
%>

<head>
<meta HTTP-EQUIV=&quot;Content-language&quot; CONTENT=&quot;en-US&quot;>
-------------------
this is in the index.html page I think

I can't actually get to just that page by itself in Front Page with frames running.

<%@ Language=VBScript %>
<% Session(&quot;FullPage&quot;) = True %>




DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top