modified regex to accept urls that start with forward slash.