Forum Moderators: phranque

Message Too Old, No Replies

redirecting viewing from 1 site to another

help :S

         

orochi

6:23 am on Sep 3, 2005 (gmt 0)

10+ Year Member



okay, a few friends of mine complained they couldent read a certain comic at school because school blocked it, so i decided to go and make a site that can access it... now problem is, i cant be going and updating it each time...

now, what i did with php was just include the page... but now its looking for the image at http://www.example.com/users/orochi/chuworth/comic/#.jpg

i was wondering if there was a way i could redirect everything from http://www.example.com/users/orochi/chuworth/comic/ to
http://www.example2.com/comic/

so if i did
<img src="http://www.example.com/users/orochi/chuworth/comic/2.jpg">

it would look for http://www.example.com/users/orochi/chuworth/comic/2.jpg at http://www.example2.com/comic/2.jpg

[edited by: jdMorgan at 2:57 pm (utc) on Sep. 3, 2005]
[edit reason] examplified. [/edit]

jdMorgan

3:02 pm on Sep 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, it's possible to do the redirect, but the redirected requests will be blocked as well, since a redirect is handled in the browser.

You'd need to proxy those requests, but then the "example2" server will see your server as the requestor in their logs, and you probably wouldn't like the result.

If this is important to you, I suggest you enter into a syndication agreement with "example2.com" so that you can present their content on your site legally.

Jim

orochi

5:06 pm on Sep 3, 2005 (gmt 0)

10+ Year Member



or from server1.com/comic/#.jpg to server1.com/comic/comic.php?id=#