Content oriented networks are proposed as a new network architecture that does not rely on an IP address. Content queries are routed on the content name itself instead of a destination address in these content oriented networks. A huge amount of content exists in a network and the contents from mobile devices are also used. When the content from a mobile device moves somewhere else, all the routing tables are generally re-created with the movement information that the mobile device sends. However, a routing scheme that uses ant colony optimization has attracted attention for supporting this process, but there is a problem with this optimization in that it cannot cope with moving contents. In this paper, we propose a scheme that can cope with moving contents by using pheromones that are laid by the moving mobile devices. Moreover, we conducted simulations to evaluate the performance of the proposed scheme.