# File path url to https url conversion

**URL:** <https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858>\
**Category:** Support\
**Tags:** netlify-newbie\
**Created:** [May 30, 2020, 2:37am UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858 "2020-05-30T02:37:01Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokewawa](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/pokewawa/32/11560_2.png) [@pokewawa](https://answers.netlify.com/u/pokewawa)\
**Post date:** [May 30, 2020, 2:37am UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/1 "2020-05-30T02:37:01Z")

</div>

I’ve heard that netlify can somehow convert a file path url (c drive) to an https url (from github I think?). Could you please help me with doing that? Thank you.

---

<div class="post-metadata">

**Author:** ![gregraven](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/gregraven/32/23821_2.png) [@gregraven](https://answers.netlify.com/u/gregraven)\
**Post date:** [May 30, 2020, 3:27am UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/2 "2020-05-30T03:27:30Z")

</div>

Even if this were possible, you’d be better off getting your file paths straight from the start, rather than depending on someone or something to magically fix them for you.

For one thing, a C drive reference can point virtually anywhere on your drive, including to folders / files that are not among the files you upload for your site to work. There’s no way those files will ever get to Netlify, but your local preview may still look fine.

I suggest you fix the file paths so they work as intended for a site on a remote server.

---

<div class="post-metadata">

**Author:** ![pokewawa](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/pokewawa/32/11560_2.png) [@pokewawa](https://answers.netlify.com/u/pokewawa)\
**Post date:** [May 30, 2020, 3:16pm UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/3 "2020-05-30T15:16:47Z")

</div>

I don’t think the file paths will work, since I’m using Google Analytics and it requires an https url.  
But you implied it wasn’t possible, so…I guess I’m screwed.

---

<div class="post-metadata">

**Author:** ![gregraven](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/gregraven/32/23821_2.png) [@gregraven](https://answers.netlify.com/u/gregraven)\
**Post date:** [May 30, 2020, 5:53pm UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/4 "2020-05-30T17:53:48Z")

</div>

Probably not, but you have to supply more information if you want a better answer.

---

<div class="post-metadata">

**Author:** ![pokewawa](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/pokewawa/32/11560_2.png) [@pokewawa](https://answers.netlify.com/u/pokewawa)\
**Post date:** [May 31, 2020, 2:11am UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/5 "2020-05-31T02:11:54Z")

</div>

Well, I’m making a game using RPG Maker MV, and I’m also using Google Analytics to track events that occur in the game. But it seems Google Analytics only takes http or https for the URLs.

---

<div class="post-metadata">

**Author:** ![gregraven](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/gregraven/32/23821_2.png) [@gregraven](https://answers.netlify.com/u/gregraven)\
**Post date:** [May 31, 2020, 12:11pm UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/6 "2020-05-31T12:11:45Z")

</div>

I’m not tracking. Your original post talked about automatically converting links to local (non-public) resources to links to public sources. Now you’re talking about GA.

I no longer use GA for most of my websites, but it used to be that you could tell Google all the different forms you want to track in your website, with/without www, with/without https, etc. This, however, is not a Netlify issue, unless you are trying to set up redirects to normalize the URLs for all visits to your site and that isn’t working.

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [June 1, 2020, 6:50pm UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/7 "2020-06-01T18:50:01Z")

</div>

let’s back up a bit. @pokewawa, can you tell us a bit more about your game and what you are trying to accomplish? is this a html based game you are deploying on netlify?

---

<div class="post-metadata">

**Author:** ![pokewawa](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/pokewawa/32/11560_2.png) [@pokewawa](https://answers.netlify.com/u/pokewawa)\
**Post date:** [June 1, 2020, 10:38pm UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/8 "2020-06-01T22:38:54Z")

</div>

OK, if it isn’t a Netlify issue than sorry for bothering. But just for reference: ![image](https://global.discourse-cdn.com/netlify/original/2X/d/d8685c16f3985f89c456575d446346c0bb4844e7.png)  
As far as I know, GA only accepts these two.

---

<div class="post-metadata">

**Author:** ![pokewawa](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/pokewawa/32/11560_2.png) [@pokewawa](https://answers.netlify.com/u/pokewawa)\
**Post date:** [June 1, 2020, 10:41pm UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/9 "2020-06-01T22:41:17Z")

</div>

Its a small prototype RPG Maker MV game that I’m using for a science project. I’m trying to get GA to track the game so I can view what events players have triggered. I’m not deploying this on Netlify, I only came here because someone told me that it could help with converting the link.

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [June 1, 2020, 10:46pm UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/10 "2020-06-01T22:46:57Z")

</div>

Well that game sounds pretty cool! If you have more questions about Netlify, you can always stop by and ask.

---

<div class="post-metadata">

**Author:** ![gregraven](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/gregraven/32/23821_2.png) [@gregraven](https://answers.netlify.com/u/gregraven)\
**Post date:** [June 1, 2020, 10:53pm UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/11 "2020-06-01T22:53:44Z")

</div>

@pokewawa Yes, there is the dropdown for http and https, but you can also type in both the apex domain and the www subdomain, so four different entries just for one domain name … if you choose to do it that way. I try to have everything routed to the https and www versions of my websites, so I don’t bother with the other three options.

---

<div class="post-metadata">

**Author:** ![pokewawa](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/pokewawa/32/11560_2.png) [@pokewawa](https://answers.netlify.com/u/pokewawa)\
**Post date:** [June 2, 2020, 12:18am UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/12 "2020-06-02T00:18:35Z")

</div>

@gregraven  
Yes, but for a file URL in my c drive I don’t think either of those will work (www or not, http or https). Anyways, I know this isn’t a Netlify issue, and I’m seeking help elsewhere. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![gregraven](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/gregraven/32/23821_2.png) [@gregraven](https://answers.netlify.com/u/gregraven)\
**Post date:** [June 2, 2020, 12:50am UTC](https://answers.netlify.com/t/file-path-url-to-https-url-conversion/15858/13 "2020-06-02T00:50:17Z")

</div>

Yes, that gets back to my point about fixing your paths. In your case, this means moving assets into the file repository where they will be uploaded, and thus available via the Internet.
