473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Optimal Use of Default.aspx?

Just what is the optimal model?

Rather than use default.aspx to return HTML I would like to use default.aspx
to return utlity functions that will determine if cookies are enabled and so
on and then do a redirect to a 'landing page' without being penalized by
search engines who may consider my default.aspx a 'doorway' page.

Using meta refresh is out of the question because Google and other search
engines will penalize and ban because a meta refresh 'might' be misused as a
doorway page and using a meta refresh does not support my need for utility
functions. Instead of a meta refresh SEO sites recommend the use of a "301
moved permanently" in the header of the response:

// Default.aspx
Response.Status = "301 moved permanently";
Response.AddHeader("Location","SomePage.aspx");

The 301 is alleged to be SEO friendly but doing that on the server means to
me there is no way to do any client-side utility functions.

What are your comments about the use of Default.aspx with regard to utility
functions and SEO and how might you redirect without getting penalized or
banned by the search engines?

--
<%= Clinton Gallagher
METROmilwaukee "Regional Information Services"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
Nov 19 '05 #1
5 1504
I'm not familiar with search engine penalties for redirects on a
default.htm page; but I'll take your word for it. As for handling
utility functions, you could put them in the Global.asax.vb file.
There's subs already defined for Application start and Session start.
You could probably do a number of things with that, I do.

HTH
alex jamrozek

Nov 19 '05 #2
How do you determine if cookies and JavaScript are enabled using a
global.asax file Alex?

<%= Clinton Gallagher

"ajamrozek" <aj*******@msn.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I'm not familiar with search engine penalties for redirects on a
default.htm page; but I'll take your word for it. As for handling
utility functions, you could put them in the Global.asax.vb file.
There's subs already defined for Application start and Session start.
You could probably do a number of things with that, I do.

HTH
alex jamrozek

Nov 19 '05 #3
Hmmm...that may be a good question. I'm not sure that you would have a
Page object to work with at that point. There may be an instantiated
object at that point that would give you that information, but I'm not
sure what that is off the top of my head.
Another thought may be to create a custom class that inherits
System.Web.UI.Page and then have pages that you deem necessary inherit
from that class. I think you can just define a New() sub within that
custom class that would have your browser check methods
Public Class Custom_Page
Inherits System.Web.UI.Page

Public Sub New()
[go crazy with objects like {me.Request.Browser}...]

End Sub
End Class

Then say in a default.aspx.vb file have
Public Class _default
Inherits Custom_Page

.....

Nov 19 '05 #4
I meant to add that in that New() sub you could have things happen to
redirect the request or whatever else you wanted. Or have a "global"
public variable that's accessible from the calling page (i.e.
default.aspx) that would tell it weather to do something or not.

Nov 19 '05 #5
Thanks for your comments. Every little bit helps.
I found this cookie_detect [1] today. So far so good but at the moment I do
not understand how it functions which means it may not be SEO friendly but
it does detect cookie support flawlessly.

--
<%= Clinton Gallagher
METROmilwaukee "Regional Information Services"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
[1] http://www.joel.net/code/cookie_dete...okie_test=true

"ajamrozek" <aj*******@msn.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I meant to add that in that New() sub you could have things happen to
redirect the request or whatever else you wanted. Or have a "global"
public variable that's accessible from the calling page (i.e.
default.aspx) that would tell it weather to do something or not.

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Amy L. | last post by:
Is there a Buffer size that is optimial based on the framework or OS that is optimal when working with chunks of data? Also, is there a point where the buffer size might not be optimal (too...
5
by: Ted Apollo | last post by:
When I develop my ASP.NET 1.1 application locally, the default form is always "WebForm1.aspx." However, when I post the same application to a web server, the default becomes "default.aspx." Why...
2
by: zino | last post by:
Hi, in asp.net , I set the start page to "myStartingPage.html" when user get authenticated and the cookie is created, the following statement is supposed to redirect him to the original requested...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
1
by: sk | last post by:
I have the following table CREATE TABLE Readings ( ReadingTime DATETIME NOT NULL DEFAULT(GETDATE()) PRIMARY KEY, Reading int NOT NULL ) INSERT INTO Readings (ReadingTime, Reading)...
3
by: Gaetan | last post by:
I have setup 2 servers (Windows 2003 Server SP1, latest hotfix) with IIS and .Net Framework 1.1 and 2.0. None of the 2 servers have default.aspx listed as a default content document even when there...
10
by: Eirik Eldorsen | last post by:
How can I 301 redirect www.example.com/default.aspx to www.example.com without using ISAPI filters?
1
by: Rudolf Bargholz | last post by:
Hi, We have created triggers to log modifications to tables in our application. The triggers work fine, just on one of the tables in our database the triggers fail with the error message...
10
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm trying to use the new VB 2008 right now and I want to know how to preset the company name and copyright informtion in Assembly Information. In my current VB 2005, company name...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.