redirecting file requests - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

redirecting file requests

detailed description of what i need done.
im sure there is a very simple way to do this but i have not found it yet for some reason.


i want to display or embed an image or sound file or something (say on a persons blog or somethin) by using
img src="http://home.comcast.net/~alienclone/pics/image.jpg" or some other similar tag.

but that is not where my image is stored.
my image is stored at "http://myipaddress/directory/pics/image.jpg"

i need all requests for all files in the "comcast/alienclone/pics" directory to be redirected to the "myipaddress/directory/pics" directory, without having to specify each file seperatly.

so if a persons computer is looking in "comcast/alienclone/pics" for
"non-specific.jpg" , it will tell it to look for "non-specific.jpg" in "myipaddress/directory/pics".

i have a dynamic ip address so i need something that i can easily alter each time my ip address changes (which is only about every month or so)

i dont know anything about asp or php or java or any of the other stuff that i should probably learn about but am pretty familiar with html.

sorry i dont know how else to word the problem.

i think comcast allows asp and php. but i dont think it allows .htaccess

i have only been searching for an answer for about 1 month now, but i am already going crazy.
im on the verge of giving up (which i really dont want to do) so if anyone can please help me i would be very greatful and i might change my mind about blowing my head off.

Comments

  • mac_doggiemac_doggie Posts: 488Member
    : detailed description of what i need done.
    : im sure there is a very simple way to do this but i have not found it yet for some reason.
    :
    :
    : i want to display or embed an image or sound file or something (say on a persons blog or somethin) by using
    : img src="http://home.comcast.net/~alienclone/pics/image.jpg" or some other similar tag.
    :
    : but that is not where my image is stored.
    : my image is stored at "http://myipaddress/directory/pics/image.jpg"
    :
    : i need all requests for all files in the "comcast/alienclone/pics" directory to be redirected to the "myipaddress/directory/pics" directory, without having to specify each file seperatly.
    :
    : so if a persons computer is looking in "comcast/alienclone/pics" for
    : "non-specific.jpg" , it will tell it to look for "non-specific.jpg" in "myipaddress/directory/pics".
    :
    : i have a dynamic ip address so i need something that i can easily alter each time my ip address changes (which is only about every month or so)
    :
    : i dont know anything about asp or php or java or any of the other stuff that i should probably learn about but am pretty familiar with html.
    :
    : sorry i dont know how else to word the problem.
    :
    : i think comcast allows asp and php. but i dont think it allows .htaccess
    :
    : i have only been searching for an answer for about 1 month now, but i am already going crazy.
    : im on the verge of giving up (which i really dont want to do) so if anyone can please help me i would be very greatful and i might change my mind about blowing my head off.
    :

    I think you should create a .htacces file and
    use mod rewrite. It is a very cool way of redirecting all requests to specific folder. THough you need to be using apache for that, so I don't know what kind of webserver you run, but if you use apache, look into this: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

    -mac-
    ;-)
    -mac-
    mailto:[email protected]
    the Netherlands...


  • alienclonealienclone Posts: 3Member
    i tried an .htaccess file but i dont think the server that i am trying to redirect FROM uses Apache cuz it didnt work,("i think comcast allows asp and php. but i dont think it allows .htaccess"). that is why i am trying to find another way of doing it.


    : : detailed description of what i need done.
    : : im sure there is a very simple way to do this but i have not found it yet for some reason.
    : :
    : :
    : : i want to display or embed an image or sound file or something (say on a persons blog or somethin) by using
    : : img src="http://home.comcast.net/~alienclone/pics/image.jpg" or some other similar tag.
    : :
    : : but that is not where my image is stored.
    : : my image is stored at "http://myipaddress/directory/pics/image.jpg"
    : :
    : : i need all requests for all files in the "comcast/alienclone/pics" directory to be redirected to the "myipaddress/directory/pics" directory, without having to specify each file seperatly.
    : :
    : : so if a persons computer is looking in "comcast/alienclone/pics" for
    : : "non-specific.jpg" , it will tell it to look for "non-specific.jpg" in "myipaddress/directory/pics".
    : :
    : : i have a dynamic ip address so i need something that i can easily alter each time my ip address changes (which is only about every month or so)
    : :
    : : i dont know anything about asp or php or java or any of the other stuff that i should probably learn about but am pretty familiar with html.
    : :
    : : sorry i dont know how else to word the problem.
    : :
    : : i think comcast allows asp and php. but i dont think it allows .htaccess
    : :
    : : i have only been searching for an answer for about 1 month now, but i am already going crazy.
    : : im on the verge of giving up (which i really dont want to do) so if anyone can please help me i would be very greatful and i might change my mind about blowing my head off.
    : :
    :
    : I think you should create a .htacces file and
    : use mod rewrite. It is a very cool way of redirecting all requests to specific folder. THough you need to be using apache for that, so I don't know what kind of webserver you run, but if you use apache, look into this: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
    :
    : -mac-
    : ;-)
    : -mac-
    : mailto:[email protected]
    : the Netherlands...
    :
    :
    :

  • mac_doggiemac_doggie Posts: 488Member
    : i tried an .htaccess file but i dont think the server that i am trying to redirect FROM uses Apache cuz it didnt work,("i think comcast allows asp and php. but i dont think it allows .htaccess"). that is why i am trying to find another way of doing it.
    :
    :
    : : : detailed description of what i need done.
    : : : im sure there is a very simple way to do this but i have not found it yet for some reason.
    : : :
    : : :
    : : : i want to display or embed an image or sound file or something (say on a persons blog or somethin) by using
    : : : img src="http://home.comcast.net/~alienclone/pics/image.jpg" or some other similar tag.
    : : :
    : : : but that is not where my image is stored.
    : : : my image is stored at "http://myipaddress/directory/pics/image.jpg"
    : : :
    : : : i need all requests for all files in the "comcast/alienclone/pics" directory to be redirected to the "myipaddress/directory/pics" directory, without having to specify each file seperatly.
    : : :
    : : : so if a persons computer is looking in "comcast/alienclone/pics" for
    : : : "non-specific.jpg" , it will tell it to look for "non-specific.jpg" in "myipaddress/directory/pics".
    : : :
    : : : i have a dynamic ip address so i need something that i can easily alter each time my ip address changes (which is only about every month or so)
    : : :
    : : : i dont know anything about asp or php or java or any of the other stuff that i should probably learn about but am pretty familiar with html.
    : : :
    : : : sorry i dont know how else to word the problem.
    : : :
    : : : i think comcast allows asp and php. but i dont think it allows .htaccess
    : : :
    : : : i have only been searching for an answer for about 1 month now, but i am already going crazy.
    : : : im on the verge of giving up (which i really dont want to do) so if anyone can please help me i would be very greatful and i might change my mind about blowing my head off.
    : : :
    : :
    : : I think you should create a .htacces file and
    : : use mod rewrite. It is a very cool way of redirecting all requests to specific folder. THough you need to be using apache for that, so I don't know what kind of webserver you run, but if you use apache, look into this: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
    : :
    : : -mac-
    : : ;-)
    : : -mac-
    : : mailto:[email protected]
    : : the Netherlands...
    : :
    : :
    : :
    :
    :

    You could try using PHP then:
    http://nl3.php.net/manual/en/function.header.php

    ;-)
    -mac-
    mailto:[email protected]
    the Netherlands...


Sign In or Register to comment.