Solved

create an image pointer

Posted on 2011-02-22
9
310 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 110

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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 

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 110

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 500 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

Industry Leaders: 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!

Question has a verified solution.

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

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

690 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