Solved

create an image pointer

Posted on 2011-02-22
9
305 Views
Last Modified: 2012-05-11
want an image.jpg to be hosted on website.com
but I want to write <img src="website2.com/image.jpg">

and see that image and website2.com acts a pointer to website.com

this is not a hosting or dns question
0
Comment
Question by:rgb192
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 33

Expert Comment

by:Slick812
Comment Utility
greetings rgb192,  I do not get what you mean in your explanation  of your question?

if you have a jpg image  hosted on website.com, then the only way the browser knows to display that image is to use -
<img src="http://www.website.com/image.jpg">

for the web location where the image is at - www.website.com/image.jpg

if an Image is not on the  www.website2.com/image.jpg  server, then an address there will not show that image,
but maybe you mean something else ? ?  can you explain more of what you are trying for ?
and what you may mean by - "website2.com acts a pointer to website.com "
0
 
LVL 4

Expert Comment

by:degaray
Comment Utility
I am not in my computer so I cannot give you full explanation. But I guess that what you want to do is to show dom1.com's image while calling dom2's right? If so try configuring your .htaccess file.
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
Why do you want to do this?  Why not just use the actual URL of the image?  That is what most professional developers would do.  Just spell it out, starting with http.
0
 

Author Comment

by:rgb192
Comment Utility
I have pictures on ebay/amazon and dont want to change ebay/amazon every time I use a new domain name
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 4

Expert Comment

by:degaray
Comment Utility
Ok, why don't you set up an account in photobucket.com there you can host images and you can change them whenever you need to. You can also set up your own website to host your images.
Cheers!
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
Flickr is another good image hosting service.
0
 

Author Comment

by:rgb192
Comment Utility
>>I am not in my computer so I cannot give you full explanation. But I guess that what you want to do is to show dom1.com's image while calling dom2's right? If so try configuring your .htaccess file.

yes

but windows server 2008 does not have .htaccess
0
 
LVL 4

Accepted Solution

by:
degaray earned 500 total points
Comment Utility
If you are using IIS try this, http://www.iis.net/download/urlrewrite . In Apache you do have .htaccess I think it is called htaccess.txt

Cheers!
0
 

Author Closing Comment

by:rgb192
Comment Utility
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now