I am converting a live site from Joomla to drupal for an organization I do volunteer work with. Currently the site url is http://{siteurl}

To develop the drupal site, I created a subdirectory, so for the drupal site, my current document root is http://{siteurl}/drupal. Here's my issue. Currently as we develop the new site for testing purposes, our image links (e.g. img src="{siteurl}/drupal/imagename.jpg" ) will be broken when we make the site live. What's the most effective way to address this issue that will have the least impact on immediate changes prior to relaunch of the new site?

I'm limited in my access to the server (it's hosted) so grep and similar tools are unavailable to me. Before we get too far down the road, I'd like to minimize later hassles.

Thanks in advance for advice.

Comments

Jaypan’s picture

You are best off using a subdomain to develop under. So rather than domain.com/drupal, you would develop at drupal.domain.com

wboyd2003’s picture

Just to make sure I understand, I've created the subdomain. Then when I'm ready to take the site live, I will need to change subdomain references to {activesite_domain} and repoint the {current_activesite} to the appropriate directory in httpd.conf?

Jaypan’s picture

If you are developing within a subdomain, you don't need to make any references to the subdomain at all. Just make any links you have absolute.

So instead of using:

http://drupal.example.com/path/to/some/image.jpg

you would use:

/path/to/some/image.jpg

Because you are developing on a subdomain, the path to the image will be the same regardless of whether its on the subdomain or the primary domain.

wboyd2003’s picture

Many thanks. I appreciate your help very much.

Bill