PDA

View Full Version : add-on domains not showing any images


seandelaney
01-13-2007, 08:16 AM
ive just registered with bluehost and i have 11 domains on my account. the main domain is seandelaney.co.uk (http://www.seandelaney.co.uk/) and all the files for this domain are stored under: /public_html/

my add-on domains all have their own subfolder under /public_html/ like:

/public_html/ukpegasus/
/public_html/quest-recruiting/
...
/public_html/precious-gift/

I have created a .htaccess file and placed it in /public_html/ inorder to make another subfolder called seandelaney in /public_html/, act as my main domains folder. Since setting this up, my folder structure looks like this now:

/public_html/.htaccess
/public_html/seandelaney/
/public_html/ukpegasus/
/public_html/quest-recruiting/
...
/public_html/precious-gift/

All seems to work fine (as in if you visit http://www.seandelaney.co.uk (http://www.seandelaney.co.uk/) the files stored in /public_html/seandelaney/ are used). When the name servers for the order domains are finally changed, hopefully when you visit another domain i have: http://www.ukpegasus.co.uk/ the files stored under /public_html/ukpegasus/ will be used and that site will work proper too...

The issue im having is none of the images are displaying for any of my domains on the account now. Before i created the folder called seandelaney under /public_html/ and have all my files for the main domain under /public_html/ the images displayed, but since i set a subfolder to act as main folder, they dont.

In my main domain, I have created a folder called media: /public_html/seandelaney/media/ where I store all my media (images, swfs etc) but yet when you visit: http://www.seandelaney.co.uk/media/leech.gif for example the image isn't displayed - you get a broken image icon appearing...

My HTML code is: <img src="media/leech.gif" alt="Stop stealing my bandwidth!" />

There is nothing wrong with this, but if i add this image tag instead: <img src="seandelaney/media/leech.gif" alt="Stop stealing my bandwidth!"/>

The image shows! I'm wondering if there is a rewrite rule I could use to fix this? Maybe manipulate the path to point to the media folder regardless of the current location within the subfolder /seandelaney/?

As i want my image tags across the site to look like this: <img src="media/leech.gif" alt="Stop stealing my bandwidth!" />

Sean

Pethens
01-13-2007, 12:39 PM
I noticed three things:

-When I go to http://seandelany.co.uk/media, I get an external redirect to http://seandelany.co.uk/seandelany/media. This is probably not what you want (the redirect should be silent)

-When I go to http://seandelany.co.uk/media/, the redirect works

-When I go to http://seandelany.co.uk/media/leech.gif, I get a 500 Internal Server Error.

These all point to errors in your .htaccess file. Why don't you post it here and people can take a look?

Stephen