Thanks for the reply, now I am trying it from my localhost,
RewriteRule ^(.*)/index.php$ /docs/$1/all-ind.php?type=$1
where the attribute passed to type is word/ppt
but really there is no directory present as word or ppt, I want the output as
mysite.com/docs/word/index.php => directory word is not present but it is passed as the value for type.