fix HTTP_BASE constant
apache url rewrite