added for rewrite condition and refer main domain