Remove directory name from path I am using WYSIWYG editor with IMCE for article description, the issue is that once i upload an image file with imce, its showing image path like 


  /DirectoryName/sites/default/files/image.jpg


Once we hosted website from local to online server, image is not showing because now DirectoryName is changed to some other name. 

Any suggestions?
I think the Pathologic contributed module will do it. I have used it in the past and it's awesome. Configuration is a bit tricky, but once it's done you can forget about most file path problems. It's an input filter for text, so it can be used anywhere you can set an input format.

Configuration of Pathologic is covered here. I think it may have issues with internationalization in some cases though.