Support

Admin Tools for WordPress

#38857 Admin URL

Posted in ‘Admin Tools for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
6.2
PHP version
n/a
Admin Tools version
1.6.0

Latest post by nicholas on Friday, 14 April 2023 20:24 CDT

florisjan

Hi,

I like to use a new plugin (Booking Calendar) on our website, and I use a different admin url for a better security.

Using the Booking Calandar in the frontend, results in confirmation email that contains a moderatelink for a backend user to confirm or deni the booking.

My problem is that this moderatelink is using the default wp-admin and that results in a 'blocked website'.

This remark was send by the developper of Booking Calendar: " So  it depends on  the plugin " Admintools", does this plugin  add some hooks to  override this WordPress  function admin_url( 'admin.php' ) and provide the correct link to the WordPress admin panel."

Can you help me to solve this problem?

Greetings

 

 

Met vriendelijke groet, kind regards,

Floris Langendam

nicholas
Akeeba Staff
Manager

Yes, we already include a site_url filter. However, this filter only replaces wp-login.php in the URL with the custom admin path.

Can you please give me an example of the actual URL you get, without your domain, so I can understand what is going on? For example, if the URL after your domain name starts with wp-admin/admin.php then our existing filter won't work. If this is the case, I can update the filter so it works. If it's something else, we'll see what can be done. I'd like to have a good idea of what is going on before I come up with a solution :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

florisjan

My login-url as administrator is www.xxxx.nl/beheer

In this specific case the plugin sends a moderatelink as https://www.xxxx.nl/wp-admin/admin.php?page=wpbcxxxxxxxxx 

Met vriendelijke groet, kind regards,

Floris Langendam

nicholas
Akeeba Staff
Manager

Perfect! My guess was spot on. Please install the dev release from https://www.akeeba.com/download/atwppro-dev/rev1874a53.html and let me know if my workaround worked.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

florisjan

Hi,

Thanks for sending me this workaround that helped me with this problem on my website. I hope this will be implemented in your next version-update.

During the installation of this workaround my website showed a message that this rev-version was older then the version that was installed on my site.

Met vriendelijke groet, kind regards,

Floris Langendam

florisjan

Hi,

The rev-version I installed helped with my problem, but the plugin doesn't work anymore.

When I submit the Configure WAF of one of the other items (whitelist, etc) the result is a 404 error.

This is the url after submit: www.xxx.nl/beheer/admin.php?page...... it should be www.xxx.nl/wp-admin/admin.php?page.....

Met vriendelijke groet, kind regards,

Floris Langendam

nicholas
Akeeba Staff
Manager

So, looking at it, this can never actually work. I will roll back the changes.

You will have to either log into your site using the special URL before using the admin URLs generated by the other plugin OR you should not use the special URL at all.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!