how to use elgg in subdirectory only with one time istalltion

sir actually i have install elgg one time and i have customize elgg according to my requirements which is running on http://localhost/elgg url now i want to run this elgg directory from subdirectry like http://localhost/demo/chintu/elgg but when i used this url all CSS is to be removed only links apper and when i click on any link i got 404 Page not found error.

i want to run my elgg in subdirectory without any new installation. i want to use old copy 

for accssing this url http://localhost/demo/chintu/elgg i have changed all neccssory tables like datalists,sites_entity now i think ur mind will be clear what i am asking

please help me i didnot get any solution yet.