Solved

create an image pointer

Posted on 2011-02-22
9
307 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 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 109

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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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 109

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How is this connection happening? 3 20
jQuery Toggle & Anchor Links 5 44
Log in through ID 5 19
PHP delete contents of file- before writing to it 6 27
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

821 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