Forum Moderators: phranque
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.
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
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.
<%@ 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
%>
[webmasterworld.com...]
This site [pstruh.cz...]
discusses using isapi filters to solve the dynamic url problem.
It might help!