Images are not showing up

I am working on fixing a website.

Images don't show up unless the url starts with www

For example when you try to access this image, it redirects you to the home page.

With the www in front, it shows up.

I tried to edit the .htaccess file to redirect the whole website to the www version:

    Options +FollowSymlinks 
    RewriteEngine on 
    rewritecond %{http_host} ^ [nc] 
    rewriterule ^(.*)$ [r=301,nc] 

But it still not working.

Can anyone help please ?


Since you provided your entire htaccess, we can try inserting some lines to force www on all your pages.

# BEGIN WordPress 
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase / 

# Insert here to force www
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# End of forcing www

RewriteRule ^index\.php$ - [L] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 
# END WordPress


How to force “www.” in a generic way?

Need Your Help

Oracle : Automatic modification date on update

oracle triggers

i have a table in oracle and i want to study the updates on lines

when adding contacts to sim card, they are only displayed after rebooting the device

android contacts sim-card

I am trying to add contacts to SIM Card, they seem to be added to the SIM Card but they're only visible after rebooting the device (even to the native People app)..

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.