Title: Why add &#8220;?&#8221; when permalink_structure empty
Last modified: August 9, 2022

---

# Why add “?” when permalink_structure empty

 *  Resolved [alhrath](https://wordpress.org/support/users/alhrath/)
 * (@alhrath)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/why-add-when-permalink_structure-empty/)
 * Hi,
 * Just out of curiosity, why do you automatically add a “?” in the login url when
   the permalink_structure option is empty ?
 * It seems to me that it can add confusion, if someone change the permalink settings,
   the login url will be changed as well without warning …
 * Best,
    Alhrath

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/why-add-when-permalink_structure-empty/#post-15904540)
 * Hello,
 * Thanks for using WPS Hide Login.
 * What do you mean ? The login and 404 values in WPS Hide Login settings can’t 
   be empty. There are default values which don’t contain any ?
 *  Thread Starter [alhrath](https://wordpress.org/support/users/alhrath/)
 * (@alhrath)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/why-add-when-permalink_structure-empty/#post-15908755)
 * No I mean if the wordpress core permalink setting is set to null (corresponding
   to “plain” in Settings->Permalinks), your plugin add a question mark before the
   login url slug. I think this is done in the new_login_url function in wps-hide-
   login/classes/plugin.php :
 *     ```
       if ( get_option( 'permalink_structure' ) ) {
   
                               return $this->user_trailingslashit( $url . $this->new_login_slug() );
   
                       } else {
   
                               return $url . '?' . $this->new_login_slug();
   
                       }
       ```
   
 * I was just wondering if there is a reason to that.
    -  This reply was modified 3 years, 10 months ago by [alhrath](https://wordpress.org/support/users/alhrath/).
    -  This reply was modified 3 years, 10 months ago by [alhrath](https://wordpress.org/support/users/alhrath/).
    -  This reply was modified 3 years, 10 months ago by [alhrath](https://wordpress.org/support/users/alhrath/).
 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/why-add-when-permalink_structure-empty/#post-15910484)
 * Hello,
 * Ah ok !
 * Yes, it’s the way the plugin works. plain permalinks setting + WPS Hide Login
   = /?secret-slug.
 * No worry about that 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Why add “?” when permalink_structure empty’ is closed to new replies.

 * ![](https://ps.w.org/wps-hide-login/assets/icon-256x256.png?rev=1820667)
 * [WPS Hide Login](https://wordpress.org/plugins/wps-hide-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wps-hide-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wps-hide-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wps-hide-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wps-hide-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wps-hide-login/reviews/)

## Tags

 * [login URL](https://wordpress.org/support/topic-tag/login-url/)
 * [question mark](https://wordpress.org/support/topic-tag/question-mark/)

 * 3 replies
 * 2 participants
 * Last reply from: [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/why-add-when-permalink_structure-empty/#post-15910484)
 * Status: resolved