updating url regexp to allow ? immediately after urls without the required /