php - Wordpress remove 'www' from image url -


i have website developed wordpress , i'm facing issue image not co-ordinate url.

the image url should ...

http://domainname.com/wp-content/uploads/2012/09/handshake-cropped-300x2651.png  

but getting "www" ie :

http://www.domainname.com/wp-content/uploads/2012/09/handshake-cropped-300x2651.png  

so reason image not loading site, checked in media library image url...

what reason issue? , how can fixed this. have changes upload path url , site url :(

rewriteengine on rewritecond %{http_host} ^www\.(.*)$ [nc] rewriterule ^(.*)$ http://%1%{request_uri} [r=301,qsa,nc,l] 

or

# force non-www domain rewritecond %{http_host} ^www\.example\.com$ [nc] rewriterule (.*) http://example.com/$1 [r=301,l] 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -