Support

Admin Tools

#35103 Can not access site in subfolder

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
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by luisme on Tuesday, 20 April 2021 16:24 CDT

luisme

I just set up Akeeba Admin tools pro on a new site I am working on in a subfolder. Now everytime I try to access the subfolder directly it sends me to the root site. I have added an exception to access the directory directly but it doesn't work. I can access the subfolder if I add /index.php at the end of the which is a relief, but not ideal. 

The subfolder will become the new website for the domain and the root site will be a news archive embedded in the new website. So I will need both urls working in the end. What would be the best way of achieving this?

Thank you!

nicholas
Akeeba Staff
Manager

Please first read https://www.akeeba.com/documentation/admin-tools/atsubdomains.html to understand why this happens.

Since trying to address that would essentially break the SEF URLs in the subdirectory this is definitely not a practical way to handle this. Instead, the best way to handle your situation is to create a new subdomain whose root directory is placed alongside the main site's root directory, not inside it. This way the .htaccess file of the main site will not be getting in the way of your site in the subdirectory.

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!

luisme

Thank you for the reply!

I have transferred the site to a subdomain devsite.mydomain.com now.

The site works but when I try to access the backend (devsite.mydomain.com/administrator) I get the following error (

Error 500 - Internal Server Error

An error was encountered while processing your request. Typically this is a temporary condition. Please contact the web site owner for further assistance.) after submitting the akeeba user/pass admin protection. 

Is there a step I am missing in order to make this work? 

Kind regards,

luisme

After a lot of searching, I found the issue. The .htaccess in the administrator folder was the problem. One thing I noticed is in the root folder there are two htaccess files. 

.htaccess and .htaccess.admintools

Should I leave both in there?

nicholas
Akeeba Staff
Manager

The .htaccess.admintools file is a backup copy created every time you run the .htaccess Maker feature in Admin Tools. You can remove it.

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!

luisme

Thank you for the help!

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!