C
Chris Guimbellot
Hello,
I am trying to create vanity URLs (I think that's what they are called) that
link directly to an item's listing
page on my site. Currently, the urls are set up something like the
following:
http://www.mydomain.com/productinfo.asp?prodID=00000
I am trying to configure them to be something like this:
http://www.mydomain.com/products/00000
The reason why I want to do this is that we print a paper directory and I
would like to list the links in there.
I have tried creating a folder called products, and configuring it to
redirect to a redirect file using the following:
http://www.mydomain.com/redirect.asp?prodID=$S
The redirect file contained something to the effect of the following code:
<%
Response.Redirect("productinfo.asp?prodID=" &_
Replace(Request.Querystring("prodID"),"/",""))
%>
This worked great on my local testing server. The problem is that my hosting
provider would not configure the folder for the redirect. That said, is
there any way to do this another way? I think the one possible is to
configure your 404 Error page to pull the url and forward to the listing
page based on some item in that url. Has anyone done this? I
appreciate the help.
Thanks,
Chris
I am trying to create vanity URLs (I think that's what they are called) that
link directly to an item's listing
page on my site. Currently, the urls are set up something like the
following:
http://www.mydomain.com/productinfo.asp?prodID=00000
I am trying to configure them to be something like this:
http://www.mydomain.com/products/00000
The reason why I want to do this is that we print a paper directory and I
would like to list the links in there.
I have tried creating a folder called products, and configuring it to
redirect to a redirect file using the following:
http://www.mydomain.com/redirect.asp?prodID=$S
The redirect file contained something to the effect of the following code:
<%
Response.Redirect("productinfo.asp?prodID=" &_
Replace(Request.Querystring("prodID"),"/",""))
%>
This worked great on my local testing server. The problem is that my hosting
provider would not configure the folder for the redirect. That said, is
there any way to do this another way? I think the one possible is to
configure your 404 Error page to pull the url and forward to the listing
page based on some item in that url. Has anyone done this? I
appreciate the help.
Thanks,
Chris