# Change Login URL

**URL:** <https://community.localwp.com/t/change-login-url/2286>\
**Category:** Support\
**Created:** [July 20, 2017, 9:50am UTC](https://community.localwp.com/t/change-login-url/2286 "2017-07-20T09:50:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![StuartH](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/stuarth/32/4613_2.png) [@StuartH](https://community.localwp.com/u/StuartH)\
**Post date:** [July 20, 2017, 9:50am UTC](https://community.localwp.com/t/change-login-url/2286/1 "2017-07-20T09:50:15Z")

</div>

I have a remote site with a changed login url. I want to mirror this on my local installation and have used a plugin on both sites.

How do I change the url so the Admin button in Local goes to my new url?

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 20, 2017, 2:23pm UTC](https://community.localwp.com/t/change-login-url/2286/2 "2017-07-20T14:23:32Z")

</div>

Hi Stuart,

We’ll look into supporting this!

What plugin are you using to change the login path?

---

<div class="post-metadata">

**Author:** ![StuartH](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/stuarth/32/4613_2.png) [@StuartH](https://community.localwp.com/u/StuartH)\
**Post date:** [July 20, 2017, 3:02pm UTC](https://community.localwp.com/t/change-login-url/2286/3 "2017-07-20T15:02:58Z")

</div>

Hi Clay,

Is there a way for me to change it on my local installation anywhere?

I’m using [WPS Hide Login](https://en-gb.wordpress.org/plugins/wps-hide-login/) which makes it easy to change this on the fly for clients!

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 20, 2017, 3:07pm UTC](https://community.localwp.com/t/change-login-url/2286/4 "2017-07-20T15:07:37Z")

</div>

> [@StuartH](#):
>
> Is there a way for me to change it on my local installation anywhere?

Not at the moment. Right now it simply appends `/wp-admin` to the URL.

> [@StuartH](#):
>
> I’m using WPS Hide Login which makes it easy to change this on the fly for clients!

Thanks! We’ll look into supporting this and other popular hide login plugins automatically.

---

<div class="post-metadata">

**Author:** ![StuartH](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/stuarth/32/4613_2.png) [@StuartH](https://community.localwp.com/u/StuartH)\
**Post date:** [July 20, 2017, 3:25pm UTC](https://community.localwp.com/t/change-login-url/2286/5 "2017-07-20T15:25:50Z")

</div>

Thanks Clay,

Two feature requests then:

1. Field to set a custom login URL
2. Ability to change db prefix prior to creating a local installation.

Both of these are security features I’m doing quite often (#2 - always!)

---

<div class="post-metadata">

**Author:** ![dgma](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dgma](https://community.localwp.com/u/dgma)\
**Post date:** [December 4, 2017, 7:50pm UTC](https://community.localwp.com/t/change-login-url/2286/6 "2017-12-04T19:50:41Z")

</div>

> [@clay](#):
>
> PS Hide Login which makes it easy to change this on the fly for clients!
> 
> Thanks! We’ll look into supportin

Any way to do this since? Automatically supporting all the different plugins that do this won’t work IMO. Custom login and security plugins do this in different ways, renaming wp-admin and/or wp-login.php.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [December 7, 2017, 4:30pm UTC](https://community.localwp.com/t/change-login-url/2286/7 "2017-12-07T16:30:21Z")

</div>

Hi @dgma,

Right now it’s not supported.

One thing you can do is use the Custom environment in Local and adjust the web server config accordingly to redirect `/wp-admin` and `/wp-login.php` to the hidden paths. The config files are in the site’s `app/conf` directory.

Using the actual web server configs to do this will ensure that it won’t redirect when you push your site to your host. 🙂

---

<div class="post-metadata">

**Author:** ![dgma](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dgma](https://community.localwp.com/u/dgma)\
**Post date:** [December 11, 2017, 2:35pm UTC](https://community.localwp.com/t/change-login-url/2286/8 "2017-12-11T14:35:28Z")

</div>

Great idea. I think Apache redirects require absolute URLs for the target, though. It seems that this way when I clone a site or create a new site based on a blueprint, the redirects will all point to the original site’s backend. Any way to avoid that? Also, will this configuration not be overwritten when the next Local update is installed?

---

<div class="post-metadata">

**Author:** ![dgma](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dgma](https://community.localwp.com/u/dgma)\
**Post date:** [December 11, 2017, 4:11pm UTC](https://community.localwp.com/t/change-login-url/2286/9 "2017-12-11T16:11:03Z")

</div>

Never mind, it was easier to do using PHP for me.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:32pm UTC](https://community.localwp.com/t/change-login-url/2286/10 "2020-08-25T18:32:18Z")

</div>


