# Going to wp-admin without trailing slash incorrectly redirects when using localhost Router Mode

**URL:** <https://community.localwp.com/t/going-to-wp-admin-without-trailing-slash-incorrectly-redirects-when-using-localhost-router-mode/28153>\
**Category:** Bugs\
**Tags:** router-mode, wp-admin\
**Created:** [October 8, 2021, 1:52pm UTC](https://community.localwp.com/t/going-to-wp-admin-without-trailing-slash-incorrectly-redirects-when-using-localhost-router-mode/28153 "2021-10-08T13:52:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [October 8, 2021, 7:07pm UTC](https://community.localwp.com/t/going-to-wp-admin-without-trailing-slash-incorrectly-redirects-when-using-localhost-router-mode/28153/2 "2021-10-08T19:07:50Z")

</div>

This sounds similar to these topic:

> [@Local incorrectly adds port number when logging into wp-admin of a site](http://community.localwp.com/t/local-incorrectly-adds-port-number-when-logging-into-wp-admin-of-a-site/25327/18):
>
> Haha! larry_heart Gotcha, I just wanted to make sure I wasn’t missing something smiley Thanks for passing along that site, it was really helpful to see an example and as a result, I think I have distilled the steps down for a reliable reproduction: Create a new site in local Trust the SSL cert for the site Open a site shell and update the url within the DB to use the secure version of the url wp search-replace 'http://example.local' 'https://example.local' Try to log into the W…

> [@URL changes to using port when accessing wp-admin](http://community.localwp.com/t/url-changes-to-using-port-when-accessing-wp-admin/25390):
>
> Issue Summary Accessing the frontend works fine, but any access of wp-admin adds a port into the url: [https://site.local:10079/wp-admin/](https://site.local:10079/wp-admin/). What causes this, and how to fix permanently? I know I can switch to using localhost as the URL; that is not ideal, so please do not mention unless a step in fixing the issue. Troubleshooting Questions Does this happen for all sites in Local, or just one in particular? Occurs every time I’ve created a new site in the recent months. Are you able to create…

A few other questions:

- What is the `siteurl` in the WordPress database?
- What plugins or themes are installed?
- Is there any change in functionality when disabling all plugins or themes?

---

_[View the full topic](https://community.localwp.com/t/going-to-wp-admin-without-trailing-slash-incorrectly-redirects-when-using-localhost-router-mode/28153)._
