I need to rewrite a URL like:
FROM: /mypage.asp?my_id=78
TO: /contact-us
Where contact us is the name of that page stored ion a database.
I can easily use a ISAPI filter to change it to:
/page/78/contact-us
HOWEVER i do not want the "78" in the URL. The reason for this is that
site is already established under names like "/contact-us" as it was
done is .net somehow.
Anyway of doing this in ASP?
I had the idea of physically creating the folder "/contact-us" using
the FSO and thendropping in an index file which searched the database
for the ID based on the name of the page, then set a session based on
that ID and then did a server.transfer to the "mypage.asp" and changed
that page to look for the session rather than the querystring.
Just wondering if anyone has a neater way?
Regards and thanks for your time.
Dave.