fisharebest / webtrees

Online genealogy
https://webtrees.net
GNU General Public License v3.0
487 stars 301 forks source link

No access to control pannel with pretty URL #3267

Closed luca74 closed 3 years ago

luca74 commented 4 years ago

Without pretty URL my home is: https://www.vattovani.it/webtrees/index.php?route=%2Fwebtrees%2Ftree%2FAlbero%2Fmy-page and the control panel is: https://www.vattovani.it/webtrees/index.php?route=%2Fwebtrees%2Fadmin.

Enabling pretty URL they become: https://www.vattovani.it/webtrees/tree/Albero/my-page (OK) and https://www.vattovani.it/webtrees/admin (error 404).

I use .htaccess for apache how described in https://webtrees.net/faq/urls/

Thanks Luca

fisharebest commented 4 years ago

Most likely a server configuration issue.

Maybe you have some sever-security software which is blocking admin URLs?

To test this, you could try changing admin so something else:

https://github.com/fisharebest/webtrees/blob/2.0.4/app/Http/Routes/WebRoutes.php#L197

luca74 commented 4 years ago

I tried, with pretty URL: https://www.vattovani.it/webtrees/aministra not accessible without https://www.vattovani.it/webtrees/index.php?route=%2Fwebtrees%2Faministra usable

fisharebest commented 4 years ago

To test this, you could try changing admin so something else:

Perhaps aministra is a bad choice. If you have security software that blocks URLs containing admin, then it will probably also block other langauges.

Choose a random word/letters.

luca74 commented 4 years ago

Ok. Now it works. Thank you

luca74 commented 4 years ago

Today I try to access "Manage family trees" with pretty URL enabled and... the link created report "admin" instead of alternative name Control panel URL: https://www.vattovani.it/webtrees/pannello but Manage tree URL: https://www.vattovani.it/webtrees/admin/trees/manage/Albero

fisharebest commented 4 years ago

/admin is also defined here:

https://github.com/fisharebest/webtrees/blob/2.0.4/app/Http/Routes/WebRoutes.php#L306

You must also change this line.

luca74 commented 4 years ago

Ok. Done. It works. Thanks.

luca74 commented 4 years ago

At each update I have to change again in order to make the site work. I can propose to change "admin" to "admin-site" or something similar

fisharebest commented 3 years ago

This is an issue with the server configuration.

It is blocking URLs that are used by webtrees.

This is not a problem with the code.