| T O P I C R E V I E W |
| MaD2ko0l |
Posted - 23 March 2010 : 14:42:29 hi,
i have 2 domains at the moment and im moving closing down domain1 but still want some of the content avaliable but redirected to domain2.
domain1 is setup as a forwarder that goes to domain2.
what i want to do is capture the url that someome might use from domain1 and redirect it to domin2.
example:
somone goes to http://domain1.com/files/somefile.jpg then it gets redirected to http://dmain2.com/
what i want to do is basically see the page that they were after and redirect acordingly.
so in this case you would get redirected to http://domain2.com/oldsite/files/somefile.jpg.
is there a way i can do this? is it possiable?
i tryed using the http_rffer to see where they were coming from but soon found out that that variable will be blank unless somoen has actually clicked on a link rather than being redirected.
thanks for the help
MaD2ko0l |
| 5 L A T E S T R E P L I E S (Newest First) |
| Davio |
Posted - 05 April 2010 : 17:21:30 Can't do much with a forwarder then.
Next thing you could do is, on your domain2, is check the referer field and capture the url they were trying to access. But again, you said referer field is blank.
Looks like you're out of options there. |
| MaD2ko0l |
Posted - 05 April 2010 : 16:39:00 unfortunatly i cannot change the 404 page on the 1st domain...there is no web hosting on it it is set up as a forwarder (forwarders are free)
so it seems as tho i am stuff then :-(
ohwell.
thanks for the help anyway |
| Davio |
Posted - 05 April 2010 : 05:20:16 If you were able to create a custom 404 error page, you could capture the url that they tried to access, and redirect it to the new domain with the same url. But that is depending if you can change your 404 error pages on your server on domain1. |
| MaD2ko0l |
Posted - 24 March 2010 : 09:20:58 no |
| Shaggy |
Posted - 24 March 2010 : 04:32:22 Do you have access to IIS on your server?
|