Navigate
Home
ArticleWiki
Forum
Journal
Search
Newsletter
Links
Tech News
expertsrt.com
Welcome Guest.
Username:

Password:

Remember me

addon domain not showing images
Welcome, Guest. Please login or register.
December 03, 2008, 11:54:36 PM
11306 Posts in 1249 Topics by 499 Members
Latest Member: haulaslemycle
Experts Round Table Network  |  Webservers  |  Apache  |  addon domain not showing images « previous next »
Pages: [1]
Author Topic: addon domain not showing images  (Read 389 times)
seandelaney
Mentor

Offline Offline

Posts: 119



WWW
« on: January 13, 2007, 03:52:40 AM »

ive just registered with a new host and i have 11 domains on my account.  the main domain is seandelaney.co.uk and all the files for this domain are stored under: /public_html/

my addon domains all have their own subfolder:

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


I have created a .htaccess file and placed it in /public_html/ to make another subfolder called seandelaney in /public_html/ to act as my main domains folder so my folder structure looks like:

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


All seems to work fine as when you visit http://www.seandelaney.co.uk the files stored in /public_html/seandelaney/ are used.  When the name servers for the order domain are finally changed, hopefully when you visit http://www.ukpegasus.co.uk/ the files stored in /public_html/ukpegasus/ will be used.

Now the issue im having is none of the images are shown for any of my domains on the account.  In my main domain, I have created a folder called media: /public_html/seandelaney/media/ where I stored all my media (images, swfs etc) but yet when you visit: http://www.seandelaney.co.uk/media/leech.gif the image isnt display - you get a broken image icon appearing.

My HTML code for index.html is:

Code:
<img src="/media/leech.gif" alt="Stop stealing my bandwidth!" />

There is nothing wrong with this, but if i add this image tag in my HTML code:

Code:
<img src="/seandelaney/media/leech.gif" alt=""/>

The image shows!  im wondering if there is a rewrite rule I could use to fix this?  As i want my image tags to look like this:

Code:
<img src="/media/leech.gif" alt="Stop stealing my bandwidth!" />
[/size]
« Last Edit: January 13, 2007, 03:56:52 AM by seandelaney » Logged

seandelaney
Mentor

Offline Offline

Posts: 119



WWW
« Reply #1 on: January 13, 2007, 11:00:43 AM »

Fixed it... I just found out that hot linking was enabled by default on my account and that is was set to high stopping just about everyone from stealing my bandwidth... maybe the Host needs to rethink there default configuration... as when set to high, it isnt a very good idea as it stops the users like me even viewing their own images on their own domain(s)... anyways there support team are now aware of the issue it causes...

The mod_rewrite rules i used to set a subfolder under public_html as my domains main folder was as follows:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?seandelaney\.co\.uk$
RewriteCond %{REQUEST_URI} !^/seandelaney/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /seandelaney/$1
RewriteCond %{HTTP_HOST} ^(www\.)?seandelaney\.co\.uk$
RewriteRule ^(/)?$ seandelaney/ [L]
Logged

Pages: [1]
« previous next »
    Jump to: