0

This is a shared hosting environment running on Windows Server 2003. I want to integrate url rewriting,so below translates:

example.com/product-name-color-ID ===> example.com/product?id=ID

Custom 404 page technique seems easiest way for me but how can i do that?

user1002601
  • 379
  • 5
  • 19
  • check this: http://stackoverflow.com/a/20646973/1682881 – Flakes Jan 20 '16 at 12:29
  • Thanks i put the web.config file and 404.asp page to the root directory of my site. But when i write example.com/not_exists it doesn't go to the 404.asp. Instead i see "The system cannot find the file specified. " error – user1002601 Jan 20 '16 at 12:38
  • Even in shared hosting you usually get an option to set up an error page. Can you try it that way – Flakes Jan 20 '16 at 12:42

1 Answers1

1

Instead of a custom 404 hack, check out Helicon Ape. It lets you use an .htaccess file (like Apache) for URL rewriting.

Keith
  • 20,636
  • 11
  • 84
  • 125
  • There's also IIRF if you don't want to pay for Helicon Ape http://iirf.codeplex.com/ – John Jan 20 '16 at 17:34