# URL changes to using port when accessing wp-admin

**URL:** <https://community.localwp.com/t/url-changes-to-using-port-when-accessing-wp-admin/25390>\
**Category:** Support\
**Tags:** apache\
**Created:** [April 27, 2021, 5:25pm UTC](https://community.localwp.com/t/url-changes-to-using-port-when-accessing-wp-admin/25390 "2021-04-27T17:25:42Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![oumouchaibo](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/oumouchaibo/32/21772_2.png) [@oumouchaibo](https://community.localwp.com/u/oumouchaibo)\
**Post date:** [May 11, 2024, 6:05pm UTC](https://community.localwp.com/t/url-changes-to-using-port-when-accessing-wp-admin/25390/24 "2024-05-11T18:05:01Z")

</div>

Hey, if you guys still suffering from this error I found a solution for it!

so this happens only when nginx configuration is trying to add a trailing slash to the wp-admin, what you can do is:

1. go to **conf\nginx**
2. open the **site.conf.hbs** file
3. add **port\_in\_redirect off;** under **root “{{root}}”;**

And You fixed it! Mark this as a solution if that worked for you so others can find it too! 😁

---

_[View the full topic](https://community.localwp.com/t/url-changes-to-using-port-when-accessing-wp-admin/25390)._
