Hein du Plessis
Hein du Plessis

Reputation: 3357

SEO friendly URLs with Delphi ISAPI

My customer wants me to get rid of the dll and ? & characters in the url and use SEO friendly urls.

How can I go about this URL - rewrite?

Currently I have something like:

http://www.ultimateholidayplanner.com/uhp.dll/AccList?PN=AccommodationSearch.htm

That needs to turn into something like:

http://www.ultimateholidayplanner.com/Accommodation/List.htm

Many thanks

Upvotes: 1

Views: 513

Answers (3)

Stijn Sanders
Stijn Sanders

Reputation: 36850

ISAPI extensions can be mapped to the extension ".*" creating a wildcard extension mapping, and so catching any and every request to the site/virtual-dir. (especially with 'check that file exists' unselected)

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx?mfr=true

(if it might interest you: I found out working on xxm)

Upvotes: 1

Mohammed Nasman
Mohammed Nasman

Reputation: 11070

You don't need to change your code, you need just to use something like ISAPI_Rewrite

Upvotes: 2

Francis Lee
Francis Lee

Reputation: 975

Use II7 and download Microsoft URL rewrite module to change this behavior.

see Using URL Rewrite module

Regards

Upvotes: 4

Related Questions