I develop sites on my server then move them when ready. I just started using IMCE and everything works well other than the image path. For instance:

The path shows /test/sites/default/files/images/test.png however I want /sites/default/files/images/test.png so when I move the site I don't have to redo all the images.

I set the rewrite in the .hataccess file and I set the base url in settings.php. Is there something else I need to set?

1 Answer 1


If you develop your site in a sub folder, rather than a subdomain, you are going to be in for a bad time. All of your image paths and links are going to be incorrect. You are better of moving to a subdomain instead. If its already too late then use the Pathologic module to clean them up.

Pathologic is an input filter which can correct paths in links and images in your Drupal content in situations which would otherwise cause them to “break;” for example, if the URL of the site changes, or the content was moved to a different server. Pathologic can also solve the problem of missing images and broken links in your site’s RSS feeds.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.