Forum Moderators: open

Message Too Old, No Replies

dynamic to static url links?

         

Andrew Thomas

10:44 am on Apr 7, 2004 (gmt 0)

10+ Year Member



I have this displayed in my url

[widgets.com...]

Is there any way it can be replaced by a static URL so it is more SE friendly?

it is from a bit of code (software) i purchased.

It is going to be used for a directory.

any ideas welcome

defanjos

1:26 pm on Apr 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have to use an Isapi filter to do it (Windows). I use isapi_rewrite, and it works very well.

dataguy

3:53 am on Apr 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can set up a custom 404 page, and call it something like '404error.asp'. The page that is being sought is posted to the error page in the querystring variable, but it is not visible to the web site visitor.

Add some code on the 404error.asp page that parses the querystring variable, creating the original values that would have been used in the querystring.

For example, using this method, you can say that you have a URL such as www.yoursite.com/product97048.htm even though that page doesn't really exist. When a visitor goes to that page, your 404error.asp page parses out the "product" and the ".htm" and your left with "97048". You can then display the info for that product number, and the visitor (and any search engine web crawler) thinks it's seeing the page "product97048.htm".

This trick has been used for years.... I have several thousand dynamic web pages indexed by search engines using this method.