RE: shorten the page address
- From: stcheng@xxxxxxxxxxxxxxxxxxxx ("Steven Cheng")
- Date: Mon, 04 May 2009 02:38:55 GMT
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
order
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
for those redirect working.asp
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.
doesn't even exist and it will be redirect to ............../page.asp,right?
*****************************************End
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)
If End IfEnd Function
*********************
--
Betty
Microsoft MSDN Online Support Lead
.
- References:
- RE: shorten the page address
- From: c676228
- RE: shorten the page address
- Prev by Date: Re: Scripting.FileSystemObject GetFile method
- Next by Date: Too Many 401 errors in IIS Log when accessing WebResource.axd
- Previous by thread: RE: shorten the page address
- Next by thread: RE: shorten the page address
- Index(es):
Relevant Pages
|