well , thanks for the reply .
about the php header , i know about it sure .
but this htaccess will use in more than one host so , i have to set it , not in php
so about the link that u just sent , iam thankful for it , but it doesnt work as i want
i inserted that code in the htaccess file
RedirectMatch (.*)file\.php$ /web/
it redirected me to www.mysite.com/web/
with ignoring the path that the htaccess uploaded into
so how can i make it redirect to /web/ in the same path that i uploaded the htaccess into, is there path query for the htaccess like [PHP_SELF] in the php ??? or what i have to do please