Support

Admin Tools

#37494 403 - Forbidden Using htaccess Maker

Posted in ‘Admin Tools for Joomla!’
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.10
PHP version
8.1.6
Admin Tools version
6.1.7

enclavecoa

I've got a copy of my production site on my local PC.  I'm using the same .htaccess file that I used on my production site on the local PC.  Everything seemed to be working (for the most part) correctly until I tried to view some MP4 videos using a component called Yendif Video Share.  I got in touch with their product support, and they told me that I would have to copy the MP4s into a new folder beneath my base URL and change the access of these files in their product from an upload to their media folder to a File URL since I'm running on a localhost.  I did that but they still would not display, and I was getting this error message "The media could not be loaded, either because the server or network failed or because the format is not supported.". After all of this their product support told me to try to display the video from a browser using a URL such as this http://localhost/joomla310/Videos/AC-Maintenance.mp4. This is where I got the 403 - Forbidden error message.  At this point, I renamed my .htaccess file that was created to a different name and renamed the htaccess.txt file that was created with the Joomla installation to .htaccess . The direct access to the video file is now accessible and it is also accessible from within Joomla. 

My question: Is there some place within htaccess maker that I need to change in order to allow access to the folder that is within my base directory for Joomla (RewriteBase /joomla310) on my localhost?

nicholas
Akeeba Staff
Manager

Go to Components, Admin Tools, .htaccess Maker

Find the “Frontend directories where file type exceptions are allowed”

In a new line enter

Videos

(please mind the character case — it's Videos, not videos, it has to match exactly the folder name you are using on your site's filesystem).

Look two rows above, there's the “Backend file types allowed in selected directories” option.

Make sure there's a line with mp4 in it (we do add it by default). If not, add it in a new line.

Scroll all the way down and find the “Host name for HTTPS requests (without https://)” and “Host name for HTTP requests (without http://)” options. Both should read

localhost

The very last option, “Base directory of your site (/ for domain's root)”, should read

/joomla310

Click on the “Save & Create .htaccess” button in the toolbar.

Your video link now works.

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: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Summer vacations: Our support will be closed for replies and new tickets from August 6th to August 21st, 2022 due to summer vacations.