Issues with uploading image

I apologize if this question has been asked many times but it’s 2:30 AM in the country I am right now, extremely frustrated, and still unable to upload an imagine to my blog.
I’m going to cut right to the chase.
I know next to nothing about coding, disclaimer.
Tried uploading an image but every time I try to publish it on my website, the image is broken or doesn’t appear.
Now I’ve opened up the code editor to my .htaccess but I honestly have no idea what I’m supposed to do. Below attached is the aforementioned .htaccess code and below the image are lines of code I wasn’t able to screenshot into a single image (new users are only allowed to upload one image per topic). I would highly highly appreciate it if someone could walk me through what I should change so that I can finally upload an image. Thanks in advance.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /w_api/Handler.php

#Weebly Additions End

Hi @Malik_J and welcome to the forum.

I think the .htaccess file receives the requested URL and then redirects to an allocated web page, falls through to a default page (usually index.php) or fails all checks and opens an error page (usually 404.php).

I would try temporarily adding the following couple of lines to the top of the relevant web page and hopefully PHP errors will be shown that may be searched for a solution.

error_reporting(-1); // maximum errors
ini_set('display_errors', 'true');
// your original script goes here

Remember to remove the additional lines after the problem has been solved.

Errors should appear in the server log files but are usually only accessible to the webmaster.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.