Support

Admin Tools

#40720 .htaccess with php application in folder

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
4.4.4
PHP version
8.2
Admin Tools version
7.5.3

Latest post by tampe125 on Friday, 17 May 2024 02:03 CDT

heleneross

Advice please.

I have a php application in a folder on my site. I do not have the option to move it elsewhere.

I am trying to work out the best way of setting up the .htaccess file in Htaccess maker.

 

I can either "Allow direct access, including .php files, to these directories" for the whole folder

or

under "Allow direct access to these files" I can list all of the 9 files required for this to work 

 

Note that there is a subfolder of this application that has its own .htaccess with contents deny from all, where generated certificates are held

 

Which do you think is the best method in terms of both speed and security or doesn't it matter? 

 

Thanks,

Helen

tampe125
Akeeba Staff

Hello,

I think the best thing is to use the option "Allow direct access, including .php files, to these directories". It's the same as listing each file, but it's easier to manage.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

heleneross

Thanks for the prompt response.

I did have a problem when I listed each file, as my links to the application just use the application folder eg. mysite/folder/ and in this case clicking on the link gave me access denied.

When I allow direct access including php files to the folder, the links work, but I then get mysite/folder/index.php

I know this is just cosmetic, but do you know of any way to remove the index.php and have it as it was before?

Helen

tampe125
Akeeba Staff

mhm... I think that's not possible to remove. Maybe you can do that, but since it's inside a subfolder you might have to do some tricks to make it work with the main .htaccess file.

Honestly I think it's not worth the effort.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

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!