.htacces Rewriting - Server Migration

In the process of migrating an application between servers,

i had to introduce using vhost in the configuration and now the now the urls of the application have changed from this form: http://application.app/app_v1/

to this one: http://applicatiopn.app/… le app_v1 a sauté.

I am looking for a solution to use in a .htaccess which will redirect call to urls like http://application.app/app_v1/index.php to url of that type http://application.app/index.php

thanks in advance


It looks like mod_alias is the ideal solution for you, something like

Redirect permanent /app_v1 http://application.app.com/