Forum Moderators: phranque

Message Too Old, No Replies

How to Parse ASP URL's

How do you make a search engine friendly URL?

         

pageoneresults

1:29 am on Jul 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This may be a topic that has been discussed in the past but I cannot locate any confirming information on how to do this correctly.

Prompted by another thread started by Tonster and then prodded by WebRookie...

[webmasterworld.com...]

I thought I'd bring the subject up again.

We need to parse the URL's from our .asp dynamically generated pages. We've managed to get this far...

www.domain.com/d/Control-Systems/65//ShopperID/504

Since Google and a few others have been able to effectively come in and grab pages that sit behind .asp?*****, we haven't aggressively pursued a rock solid solution.

The above method uses some type of 404.asp page and I'm not real comfortable with it. Although, it could be an alternative way to parse the URL's.

Since .asp is not my forte, I do know some of the basics, I may not use the proper language here in describing what we need to do, so bear with me please.

I just want to be able to take this...

www.domain.com/page.asp?variable=result

and turn it into this...

www.domain.com/page.asp/variable=result

or whatever would be the best solution. Okay all you .asp gurus, what is the simple answer to this? Or is there one? We've already looked at the various software out there that will allow us to do this, but the URL paths aren't what I envisioned.

mavherick

1:48 am on Jul 5, 2002 (gmt 0)

10+ Year Member



I usually work with ColdFusion but after quickly looking at some asp reference site maybe you could try the following:

Request.ServerVariables("PATH_INFO")

In ColdFusion, we use it to parse url of the following format:

[mydomain.com...]

With the PATH_INFO variable, I have access to the language/french part. Let me know if that helps.

mavherick

korkus2000

1:55 am on Jul 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is a recent discussion on the topic.
[webmasterworld.com...]

I have had no real problem with querystring urls and search engines. Fast, Google, AV, and even Ink drink them up. I would stay away from the error page scenerio. Query string url recognition is only getting better. It is really becoming a nonissue. I have had dynamic content 5 pages deep off the same base page (where the query striung is the only difference.

korkus2000

1:59 am on Jul 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



He is a thread were I tried to get the same answer.
[webmasterworld.com...]

pageoneresults

9:26 am on Jul 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Does this look familiar to any of you asp gurus?

<%@ Language=VBScript %>
<%
str = mid(Request.QueryString,5)
str = replace(str,"http://www.domain.com/","")
querystring = split(str,"/")

if lcase(querystring(0)) = "directory" then
'/p/storeid/aid/pid/shopperid/deptid
'Response.Redirect("http://www.domain.com/directory/file.asp?id=" & querystring(2)
else
'Response.Redirect("http://www.domain.com/file.htm")
end if
%>

ukgimp

9:31 am on Jul 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A post that talked of using asp and 404's

[webmasterworld.com...]

se4rchsiren

11:53 am on Jul 5, 2002 (gmt 0)

10+ Year Member



Hi Guys

This site [pstruh.cz...]

discusses using isapi filters to solve the dynamic url problem.

It might help!