KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm in a situation where I need to rewrite an url in javascript and switch it from http protocol to https. I can match https urls with: if(url.match('^http://')){ but how do I form the https url using regular expressions and javascript? url = "https://" + ?;
Tags (comma-separated)
Save Edits
Cancel