# Redirecting a file URL

**URL:** <https://community.hubspot.com/t/redirecting-a-file-url/74583>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [February 6, 2023, 9:09pm UTC](https://community.hubspot.com/t/redirecting-a-file-url/74583 "2023-02-06T21:09:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZWalters](https://avatars.discourse-cdn.com/v4/letter/z/eb8c5e/32.png) [@ZWalters](https://community.hubspot.com/u/ZWalters)\
**Post date:** [February 6, 2023, 9:09pm UTC](https://community.hubspot.com/t/redirecting-a-file-url/74583/1 "2023-02-06T21:09:06Z")

</div>

I have an uploaded pdf file that i’d like to redirect to a different website. However, I’ve been told that this isn’t possible to do in Hubspot. Do I have any other options to redirect the url? Any third-party services or something similar?

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [February 7, 2023, 10:45am UTC](https://community.hubspot.com/t/redirecting-a-file-url/74583/2 "2023-02-07T10:45:33Z")

</div>

Hi @ZWalters,

do you mean that you’d like to have a different URL to the file?

so instead of

`https://HUBID.fs1.hubspotusercontent-na1.net/hubfs/HUBID/PDF-NAME.pdf`

something like

`https://YOURDOMAIN.com/PDF-NAME.pdf`

?

It is possible to achieve this by multiple ways

1. **In the file Manager**  
open the file in the File Manager and select one of the connected domains for the file in the “File URL by domain”

 ![Anton_0-1675766290832.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/1/f10432466dfba6a267c2b8a2d27487c564b6d336.png)

1. **Set the default URL of all Files uploaded from the generated HubSpot URL to your own one(will mostly like for future uploads)**  
You’ll find this setting here:  
settings(cog icon;top right corner) → Website → Pages → SEO&Crawlers → Default File Manager Hosting Domain
2. **create a redirect in the settings**  
You’ll find all of your redirects here:  
settings(cog icon; top right corner) → website → Domains&URLs → Redirects

best,

Anton

---

<div class="post-metadata">

**Author:** ![ZWalters](https://avatars.discourse-cdn.com/v4/letter/z/eb8c5e/32.png) [@ZWalters](https://community.hubspot.com/u/ZWalters)\
**Post date:** [February 7, 2023, 3:02pm UTC](https://community.hubspot.com/t/redirecting-a-file-url/74583/3 "2023-02-07T15:02:04Z")

</div>

Thanks for your reply. I’m actually trying to redirect to a different website/url I don’t own. So a redirect would be the best solution, however Hubspot does not allow redirects for file uploads. So I’m looking for a different solution.

---

<div class="post-metadata">

**Author:** ![kmaltman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kmaltman/32/76793_2.png) [@kmaltman](https://community.hubspot.com/u/kmaltman)\
**Post date:** [February 29, 2024, 8:35pm UTC](https://community.hubspot.com/t/redirecting-a-file-url/74583/4 "2024-02-29T20:35:19Z")

</div>

@ZWalters did you find a solution? I’m looking to do the same

---

<div class="post-metadata">

**Author:** ![ZWalters](https://avatars.discourse-cdn.com/v4/letter/z/eb8c5e/32.png) [@ZWalters](https://community.hubspot.com/u/ZWalters)\
**Post date:** [February 29, 2024, 10:17pm UTC](https://community.hubspot.com/t/redirecting-a-file-url/74583/5 "2024-02-29T22:17:45Z")

</div>

Not that I ever found, sorry! I kinda just learned my lesson and starting using a different url service that I have more control over.

---

<div class="post-metadata">

**Author:** ![kmaltman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kmaltman/32/76793_2.png) [@kmaltman](https://community.hubspot.com/u/kmaltman)\
**Post date:** [February 29, 2024, 11:04pm UTC](https://community.hubspot.com/t/redirecting-a-file-url/74583/6 "2024-02-29T23:04:03Z")

</div>

Thanks! Lesson learned indeed
