Defined ROOT path, Added IN_PERMALINK condition

1. Defined ROOT path
2. Added IN_PERMALINK condition for Server some variables