views:

18

answers:

0

The story is this, I have a large Classic ASP website that has now been re-written in PHP and moved to a new server (Rackspace Cloudsites). I need to redirect all of the old ranking ASP pages to their new PHP counterparts (not always the same name so simple .asp -> .php rewrite will not work). I have followed this article as I was told that since the files are .asp I cannot do the redirect via htaccess. My problem is that I can't seem to get a redirect working for any page not in the sites root.

E.g.

<rule name="Rewrite Colorado">
   <match url="^rv_rental_locations/colorado/index.asp" />
   <action type="Rewrite" redirectType="Permanent" url="blog/2010/08/23/rent-an-rv-in-colorado/index.php" />
</rule>

I was able to get redirects at the root level to work just fine both in the Web.config and with a combo of Web.config + htaccess (convert request to .php in Web.config then redirect with .htaccess)

Any help would be greatly appreciated.