Hello I made a simple url validation with regex. after doing by using these regex block of code:
/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi;
I discovered that I cannot access the form using www.sitename.com, but I can access it using https://sitename.com I have tried using so many resouces online to get this fone but all to no avail, how can i access the form using both formats.