Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

create an image pointer

Posted on 2011-02-22
9
Medium Priority
?
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 34

Expert Comment

by:Slick812
ID: 34957116
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
ID: 34957900
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 111

Expert Comment

by:Ray Paseur
ID: 34961312
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rgb192
ID: 34962641
I have pictures on ebay/amazon and dont want to change ebay/amazon every time I use a new domain name
0
 
LVL 4

Expert Comment

by:degaray
ID: 34962989
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 111

Expert Comment

by:Ray Paseur
ID: 34963546
Flickr is another good image hosting service.
0
 

Author Comment

by:rgb192
ID: 34964869
>>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 2000 total points
ID: 34964991
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
ID: 35097585
thanks
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

609 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