Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Capture Redirects?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 23 March 2010 :  14:42:29  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
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

© 1999-2010 MaD2ko0l

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 24 March 2010 :  04:32:22  Show Profile  Reply with Quote
Do you have access to IIS on your server?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 24 March 2010 :  09:20:58  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
no

© 1999-2010 MaD2ko0l
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 April 2010 :  05:20:16  Show Profile  Reply with Quote
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.

Support Snitz Forums
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 05 April 2010 :  16:39:00  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
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

© 1999-2010 MaD2ko0l
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 April 2010 :  17:21:30  Show Profile  Reply with Quote
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.

Support Snitz Forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 3.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07