473,396 Members | 1,987 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,396 software developers and data experts.

Server-side redirect to another URL w/o a trip to client

Howdy:

I have converted a huge ASP page over to .Net (C#). The old page has
been will be removed from our site, but I need to have a dummy page
there that will redirect the user to the new site for backwards
compatability. I originally used a Response.redirect but we found
that users with high security settings get security pop-ups. We
really don't want this. Here is the really basic page that I wrote to
redirect the user to the new URL:

<% @LANGUAGE="VBSCRIPT" %>
<%

dim version
version = "ver11=1"

dim queryString
queryString = Request.QueryString

dim redirectURL
redirectURL = "http://thenewurl/query.aspx?" & queryString & "&" &
version

Response.Redirect(redirectURL)

%>

This works but it makes a trip back to the client. I have played with
Server.Transfer and Server.Execute but I think you need to be
redirecting to a page that lives on the same server as the landing
page. Is there a way to redirect to another URL w/o making another
round trup to the client?

Your input is greatly appreciated.

Thanks
Jul 19 '05 #1
2 5005
IMO, anyone who is running his browser in ultra-paranoid mode should not be
catered to. If Redirect headers are trigger alerts, your site is NOT the
only one that will do this, so this is the life that these people have
chosen. What I would do is:

<%
Response.REdirect "newurl"
%>
<script type="text/javascript">
location.replace('newurl');
</script>

<a href="newurl">If you are not automatically redirected, please click
here.</a>

That's three opportunities to get the person to the new location, the third
one being a link for the user to click.

Ray at work
"T Conti" <tc****@hotmail.com> wrote in message
news:5e*************************@posting.google.co m...
Howdy:

I have converted a huge ASP page over to .Net (C#). The old page has
been will be removed from our site, but I need to have a dummy page
there that will redirect the user to the new site for backwards
compatability. I originally used a Response.redirect but we found
that users with high security settings get security pop-ups. We
really don't want this. Here is the really basic page that I wrote to
redirect the user to the new URL:

<% @LANGUAGE="VBSCRIPT" %>

Jul 19 '05 #2
T Conti wrote:
...
The old page has
been will be removed from our site, but I need to have a dummy page
there that will redirect the user to the new site for backwards
compatability....


Probably best to configure the server to return http status code 301 (moved
permanently) - is a setting available via the management gui.

--
Net
Jul 19 '05 #3

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

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
0
by: Philip Trim | last post by:
General Brief: 3 SQL Servers as MS SQL Server 2000 Standard Edition with Service Pack 3 All using FTP for snapshots All Servers are both Publishers and Distributors. Server A has the correct...
5
by: Grim Reaper | last post by:
My work let me put SQL Server 7.0 Enterprise Edition on my laptop. I have never setup a server from the beginning, so I am a little new at creating server groups. Alright, I am trying to create...
2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
2
by: Robert M. | last post by:
Information: Server A: SQL Server 2000 Enterprise Edition. OS is Windows 2003 Server Enterprise Edition. SQL Service pack is 3a. Member of domain ABCDomain. Server A is going to function as a...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
14
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that...
10
by: sara | last post by:
Hi All, I was able to connect to MS SQL Server 2005 on my computer but after a while I can not. When I want to connect to it using MS SQL Server Management Studio I got this error: An error...
1
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.