# Postman import url doesn't match raw

**URL:** <https://community.postman.com/t/postman-import-url-doesnt-match-raw/21852>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [March 25, 2021, 3:19pm UTC](https://community.postman.com/t/postman-import-url-doesnt-match-raw/21852 "2021-03-25T15:19:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangzijie011](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@wangzijie011](https://community.postman.com/u/wangzijie011)\
**Post date:** [March 25, 2021, 3:19pm UTC](https://community.postman.com/t/postman-import-url-doesnt-match-raw/21852/1 "2021-03-25T15:19:09Z")

</div>

Hi there,

I’m new to Postman and have this weird issue with postman imports -

I have a batch of requests I used to run in Dev environment, I export them as JSON, open with notepad and change every raw url to PROD link, as below:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/3/35ec20d91e16688ff499aea1c64f7e3ceef31f8d.png)  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/c/7/c746e189efcd6bf0aa16311ad8da3f6139943dc2.png)  
Then I import the collection, but postman would change all url’s back to Dev link.  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/7/4/74c50b49bee8b991e7edd6d3c57e783251593364.png)  
Can anyone help on this?

Thanks,  
Jay

---

<div class="post-metadata">

**Author:** ![pranavdavar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pranavdavar/32/9152_2.png) [@pranavdavar](https://community.postman.com/u/pranavdavar)\
**Post date:** [March 25, 2021, 5:48pm UTC](https://community.postman.com/t/postman-import-url-doesnt-match-raw/21852/2 "2021-03-25T17:48:14Z")

</div>

Hi @wangzijie011, Welcome to the community!

You may need to change the host also in the file.

But the better way to accomplish this is to use environment variables. You can refer to the document over [here](https://learning.postman.com/docs/sending-requests/variables/).

---

<div class="post-metadata">

**Author:** ![wangzijie011](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@wangzijie011](https://community.postman.com/u/wangzijie011)\
**Post date:** [March 26, 2021, 9:47pm UTC](https://community.postman.com/t/postman-import-url-doesnt-match-raw/21852/3 "2021-03-26T21:47:53Z")

</div>

@pranavdavar Thank you so much for your help!
