i moved my drupal site from one srever to another and keep in subdirecory on new server only the homepage is accessible while all the other pages commming up with 404 urls rewriting properly.

Comments

Make sure your htaccess file transferred, especially if you have any type of url alias and need clean URLs enabled. It probably didn't, as most programs won't pick it up. This has happened to me on several occasions and adding my htaccess file brings everything back online.