Hi people, I am an seo who recently changed companies. In the past I've predominantly worked with html/php sites and have rarely come across ASP sites. The new company that I work for construct all their sites using asp and host them all on the mandatory windows server. This has presented me with a problem... at my previous company i used htaccess for all my redirects, url re-writes etc... But i no longer have this resource at my finger tips. Does anyone have any advice? I've read about isapi but the sites are hosted on a shared server.
To any page, simply add <% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.new-url.com/" %> Code (markup):
A 301 redirect will do absolutely nothing for you in relation to url rewriting. You simply cannot do it with classic asp without an isapi extension. Ionics is free and uses similar structure to apache's mod rewrite. Contact the shared server host and ask if they will install Ionics ISAPI Rewrite for you and register the .dll in a folder you have access to. This will need doing for each site hosted on the server using unique folders or uniquely naming the dll files and ini files accordingly in one folder. http://www.codeplex.com/IIRF
If they wont do that for you, I would consider moving to a more friendly host. Although that might not be your decision to make. Good luck!
Hi artivity, thanks for the reply. Moving servers isnt my choice unfortunately. I thought isapi might be the only way! I guess i have no choice other than getting the hosting company to install it!
One more question. Were using fasthost and they wont install it. Any recommendations of a host provider who will setup isapi?