changed URL handling in apache