Support

Admin Tools

#38793 Allowing webp images in htaccess file

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
3.10.11
PHP version
7.4.33
Admin Tools version
6.1.9

Latest post by nicholas on Thursday, 30 March 2023 08:21 CDT

WebsiteWI

To Whom it May Concern,

I found this which says it's possible but what is the exact code that I need to add to the.htaccess file? - https://www.akeeba.com/support/admin-tools/32855-webp-and-htaccess.html

Thanks, Best Regards

Bill, 

Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

 

nicholas
Akeeba Staff
Manager

We have already added the common WebP extensions (.webp and .WEBP) to the default list of allowed extensions since Admin Tools 5.3.3 released in July 2019. However, we can only do that on new installations. Existing installations have to add that manually.

Go to Components, Admin Tools, .htaccess Maker.

Find the “Backend file types allowed in selected directories” and add the following two lines at the end:

webp
WEBP

Find the “Frontend file types allowed in selected directories” 

and add the following two lines at the end:

webp
WEBP

Click on Save & Create .htaccess in the toolbar.

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!

tampe125
Akeeba Staff

Hello,

you have to add that extension inside the fields "Backend file types allowed in selected directories" and "Frontend file types allowed in selected directories".

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!

WebsiteWI

Hi Nicholas,

Weird question.  Where is the .htaccess maker located in Admin Tools?  Isn't it suppose to be in the security section?

nicholas
Akeeba Staff
Manager

Well, you are using NginX, not Apache. That's why you have the NginX Configuration Maker instead.

If you are not using the NginX Configuration Maker you do not need to do anything; Admin Tools is NOT blocking WebP images.

If you are using the NginX Configuration Maker —if you are unsure, you are not, since using the file it generates requires altering your NginX configuration— then and only then you can follow the instructions above in the NginX Configuration Maker page.

Please remember that what I described only has to do with allowing access to WebP files. If you want to manage WebP files through Joomla's Media Manager, that has nothing to do with Admin Tools. I have a feeling that maybe that's the problem you have and you didn't actually explain it in your earlier post.

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!

WebsiteWI

Hi Nicholas,

#1. Let me back track to where this issued started.

I got stuck at Joomla 3 php 7.4 because I built my website network using sh404sef since Joomla 1.5 linking thousands of urls over dozens of websites well Weeblr finally created an importer for the urls from sh404sef to 4SEF which is Joomla 4 compatible. 

So in this nightmare process I'm working with Samuel at JCH Optimize to get my websites to run faster and he said: - " I've optimized the images, and the WEBP formats are enabled, but they're generating a 403 error on the site. Your server or some extension is blocking these. Check Admin Tools. It could be this component that's preventing them, so just configure it to allow WEBPs, then enable the load WEBP feature."

My dedicated server is using Ubuntu 18.04.6 with Plesk. - " The GD library shipped with Plesk PHP 7.2 and higher supports WebP starting from Plesk Obsidian 18.0.27.

Figuring it wasn't a server issue I moved on to Admin Tools and found  https://www.akeeba.com/support/admin-tools/32855-webp-and-htaccess.html which looked like the configuring the .htaccess file correctly might solve the issue. 

 

#2. A couple years ago I tried to use NginX Configuration Maker but I couldn't get it to work with my server.  Do you recommend using the NginX Configuration Maker for better website loading speeds?  

nicholas
Akeeba Staff
Manager

Since you are not using the NginX Configuration Maker your problem is not caused by Admin Tools.

I will refrain from commenting on what lies outside our core support due to lack of time.

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!