Support

Admin Tools

#13024 .htaccess maker

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 nicholas on Tuesday, 24 July 2012 14:30 CDT

DaveOzric
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the tickets before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: (2.5.6)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: (2.1.0)

Description of my issue:
When I used the default options to create a .htaccess file it blocked some of my photos from showing on the front end. The photos were all in the same sub-directory in a few sub-folders. See example below.

/public_html/images/igallery/resized/1-100
/public_html/images/igallery/resized/1101-1200

Can you tell me how this could happen so I can configure this in the future.
Thank you

nicholas
Akeeba Staff
Manager
Did the files not have an extension at all, or do they have an extension but you skipped it? If they do have an extension, what is it? Be aware that case matters, i.e. jpg, Jpg and JPG are three different extensions as far as the web server is concerned.

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!

DaveOzric
Interesting. Yes there are a mix of .jpg and .JPG

nicholas
Akeeba Staff
Manager
OK, here's the deal. The .htaccess Maker only allows certain file extensions to be accessible over the web. This is a security precaution. It's quite possible that the server has set up a non-standard file extension to be executable. In this case an attacker could exploit a vulnerability on your site to upload a malicious executable file and access it over the web. .htaccess Maker proactively disables such a possibility by having a list of "safe" extensions. Unfortunately, servers consider .JPG and .jpg to be different extensions. Only the latter is in the default list. It's easy to add it, though.

Go to the .htaccess Maker in Admin Tools and expand the Server Security slider. Append JPG (all caps) to the list of "Front-end file types allowed in selected directories". That should do the trick.

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!

DaveOzric
Yes sir, that did it.

Thank you for the excellent support!

nicholas
Akeeba Staff
Manager
You're welcome :)

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!

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!