RE: shorten the page address

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Betty,

As for the redirection script, you only need to put it in the custom 404
page(an asp page) rather than put it in each asp page you want to remapping
its path.

Also, as for your afraid to be punished by search engines, do you mean that
you're worried that the 404 page approach will cause search engine to
receive 404 error instead of 200 code? For this scenario, I think you'd
better use some http monitoring tool(such as the IE web development helper
or fiddler) to verify the http response header(status code) to see how this
404 error page approach works.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

--------------------
From: =?Utf-8?B?YzY3NjIyOA==?= <betty@xxxxxxxxxxxxxxxx>
Subject: RE: shorten the page address
Date: Thu, 30 Apr 2009 13:43:38 -0700


Steven,

the following is from http://asp.johnavis.com/blog/default.asp?id=19
This RequestQS function call can get parameter's value.
I think this function call shoud be put in the customized 404 page in
order
for those redirect working.
But why John says it needs to be put "Add the following function to the
beginning of each of your scripts that will use URL redirection:"
The page:
http://www.mydomain.com/param1name/param1value/param2name/param2value/page.
asp
doesn't even exist and it will be redirect to ............../page.asp,
right?
*****************************************
Add the following function to the beginning of each of your scripts that
will use URL redirection:


Function RequestQS(strParam) strQuery =
Request.ServerVariables("QUERY_STRING") lngStart = InStr(strQuery,"/" &
strParam & "/") RequestQS = "" If lngStart > 0 Then lngStart = lngStart +
Len("/" & strParam & "/") lngEnd = InStr(lngStart + 0, strQuery, "/") If
lngEnd > 0 Then RequestQS = Mid(strQuery, lngStart, lngEnd - lngStart)
End
If End IfEnd Function

*********************
--
Betty

Microsoft MSDN Online Support Lead


.



Relevant Pages

  • Newbie question: migrating "global variables" from ASP to ASP.NET
    ... We've been using ASP to power our companys intranet ever since around 1998, ... i.e. we'd like to migrate our existing ASP scripts to ... In 1998 we've put together a separate include-file containing all commonly ... Now I know that global variables are probably the second most stupid idea ...
    (microsoft.public.dotnet.framework.aspnet)
  • [Full-Disclosure] AOL website redirection scripts allow for abuse
    ... Vulnerability: Lack of input filtering allows for redirection abuse. ... The scripts in question allow input from external resources without ... In an environment where AOL users are being phished constantly via Instant ...
    (Full-Disclosure)
  • Re: create users and email accts
    ... I have been using a combination of scripts ... - Test that the account you want to create does not exist: (ASP VB) ... set adsuser = getobject ... Create additional folders / home folder and profile folder ...
    (microsoft.public.scripting.vbscript)
  • Re: Securing Non ASP.Net Files
    ... For both ASP and ASPX pages there are two activities which you might wish to ... In order to ensure that scripts may not be downloaded, ... above and beyond the way IIS will natively treat ASP ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP vs ASP.NET
    ... I don't know how many endless redirection loops ... "Jim Carlock" wrote: ... > 3) Microsoft ABUSES redirection. ... > they are taking away what has always seemed to me like the beauty of ASP. ...
    (microsoft.public.inetserver.asp.general)