Release access in the WordPress directory to print images? .htaccess

-1

I have a problem with WordPress, I'm uploading the images to a specific directory and I need them to be viewed directly through the URL.

From the root of the portal there is a directory called server and inside it has a directory called images, then the access would be:

http://www.meusite.com/server/imagens/minhafoto.jpg

However, WordPress does not allow direct access to this directory, as shown above, it has a 404 error.

How do I release this rule in .htaccess of WordPress?

Follow my .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
    
asked by anonymous 16.04.2014 / 23:41

2 answers

2

This is not a WordPress problem, as the colleague mentioned above does not block direct access to this type of file. Are these images appearing on your site? I already had similar problem when the images were not readable on the server, but in my case the return was 403 and not 404, are you sure the files exist right? If yes, then check the write permissions or contact the server support.

    
19.04.2014 / 02:00
5

If the page is not found, it is because the file does not exist, wordpress does not restrict access to the folders unless you explicitly configure it in .htaccess, this default setting of wordpress does not affect this.

By default you can access all assets directly. (.css, .js, .png, etc.).

    
17.04.2014 / 04:31