Support

Admin Tools

#41552 You don't have permission to access this. Please contact a website administrator if this is incorrect.

Posted in ‘Admin Tools for Joomla! 4 & 5’
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

Joomla! version
5.2.2
PHP version
8.4
Admin Tools version
7.6.2

Latest post by jweelden on Monday, 03 February 2025 02:55 CST

jweelden

Good evening,


I’m not sure if this is the right place to ask this question, but I hope you can at least point me in the right direction.

I have a website where part of the content is only accessible to registered members. If someone is not logged in and tries to open a restricted page, they see Joomla's default message in red text:

"You don't have permission to access this. Please contact a website administrator if this is incorrect."

However, I would like a specific page to be displayed instead when users attempt to access content that is restricted to registered members.

Is there any way to achieve this using?  I.E. .htaccess

 

best regards

John

nicholas
Akeeba Staff
Manager

Using the .htaccess won't help you here. You are talking about access control and error pages at the web application, not at the web server, level.

When an error occurs in Joomla it shows your template's error.php page. If that is not found, it displays the templates/system/error.php page instead.

Some third party templates and template frameworks do have features which allow you to display custom articles or modules in the error page. If you have such a template or template framework then what you want is very easy to do.

Otherwise, you'd have to override your template's error.php page – like we have. Try accessing akeeba.com/404-example and you'll see what I mean. It's doable, but it's more finicky. You also need to remember that the error page is shown for all errors, not just access denied.

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!

jweelden

Thank you very much Nicolas. Will look at the error page.

best regards

John

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!