how to use htaccess file for two different elgg copy

hello sir i have one problems i have iunstalled elgg in one location http://localhost/elgg its working file

and when i copy this folder with all data_folder and source file in diffrent directory like http://192.168.0.1/demo/school/elgg first index page is properly work when i click any link i found 404 the requested url not found on this server i have also been changed in .htaccess file of this directory but no effect it is alwayes acccess .htaccess flle of http://localhost/elgg  directory how i can do this thing in diffrent manner if you have any idea please suggest me?