# Redirecting Url not working properly

**URL:** <https://answers.netlify.com/t/redirecting-url-not-working-properly/114652>\
**Category:** Support\
**Tags:** deployment, redirects, authentication\
**Created:** [March 18, 2024, 1:44am UTC](https://answers.netlify.com/t/redirecting-url-not-working-properly/114652 "2024-03-18T01:44:21Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dig](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/dig/32/56744_2.png) [@dig](https://answers.netlify.com/u/dig)\
**Post date:** [March 20, 2024, 3:16pm UTC](https://answers.netlify.com/t/redirecting-url-not-working-properly/114652/5 "2024-03-20T15:16:40Z")

</div>

> [@Sonuu20](#):
>
> the \_directs fille

Was that a typo and you meant `_redirects` file?

I don’t see the file in the repository you linked previously and the last commit was 3 days ago.

In this instance you’ll want the file in the `public` directory for the reasons outlined here

> [@Images do not present on Netlify after deploying, but they work well on the local host](https://answers.netlify.com/t/images-do-not-present-on-netlify-after-deploying-but-they-work-well-on-the-local-host/66762/20):
>
> @ayush1 You are using Vite, so your issue is the same as many others using Vite. You haven’t read or understood the applicable documentation for Vite. Vite isn’t magic and it won’t work with whatever random project structure you throw at it. You should read the [Vite Static Asset Handling Documentation](https://vitejs.dev/guide/assets.html), in particular the section concerning the [Public Directory](https://vitejs.dev/guide/assets.html#the-public-directory). Note: Anyone else encountering this thread that is using Vite and has an issue with images, favicons, or \_redirects files (or other s…

---

_[View the full topic](https://answers.netlify.com/t/redirecting-url-not-working-properly/114652)._
