There might be a simple solution to this problem, but I certainly can't find it.
I understand that I have a router in area 0 receiving routes from other routers in area 0 (the core) and putting them in the routing table as IA routes. The interface the router receives these routes on is the primary interface it would use to get to those subnets. It has another interface with a route over a less desirable path to several of the same subnets normally accessed through the core. This router will become the only way to a subnet that is usually available through area 0 in the event that the subnet loses it's connection the core. The PE router on this less desirable side will send RIP routes or I can use static. I prefer to use static with high ADs.
When a subnet is not visible to the core, this router will insert the static route into the routing table and redistribute static into the core as E1 routes. This works fine, but when the subnet becomes visible to the core again, this router keeps this static route (or rip if when I've had it configured) in the routing table. The only way to get it out of there is by removing the static routes. Then the OSPF IA route will go back in the routing table. If I put the static route back in after that, the OSPF IA route remains.
I think I know why the IA route is less prefered than the static or RIP routes, but how do you make it so that when the IA route is received and a static or RIP route already exists in the routing table for this route, the router will insert the IA route?