Raised This Month: $ Target: $400
 0% 

HTML redirect question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 11-01-2010 , 02:16   HTML redirect question
Reply With Quote #1

I have two domains like that: site.advertisement.com and site.com

I want that the advertisement site should be redirected to site.com so I am using this:

Quote:
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.site.com">
But as site.com gets the data from the advertisement site, it keeps refreshing like an infinite loop. So my question is, if we can check the site, so if website is www.advertisement.com use the script
Quote:
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.site.com">

Last edited by bibu; 11-01-2010 at 12:43.
bibu is offline
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 11-01-2010 , 04:46   Re: HTML redirect question
Reply With Quote #2

yeah its logically that site.com does a loop if u get the content from the advertisement.com site.

the question is now, how u get the data from advertisement.com ?

did u use php ?

u may check for requests on advertisement.com site so if the request
isnt given u redirect to site.com and if it is given u got the data

but without to know how u get anything, i cant tell u any solution
platzpatrone is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-01-2010 , 12:42   Re: HTML redirect question
Reply With Quote #3

I am just having with the domain a hidden redirecting to the advertisement site, so it does show mysite.com but it is actually the advertisement site. So I thought about checking the site which the user is, if possible.
bibu is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-26-2010 , 07:02   Re: HTML redirect question
Reply With Quote #4

bump
bibu is offline
capostrike93
Veteran Member
Join Date: Feb 2009
Location: adios y??
Old 12-26-2010 , 07:31   Re: HTML redirect question
Reply With Quote #5

Quote:
Originally Posted by bibu View Post
I have two domains like that: site.advertisement.com and site.com

I want that the advertisement site should be redirected to site.com so I am using this:

But as site.com gets the data from the advertisement site, it keeps refreshing like an infinite loop. So my question is, if we can check the site, so if website is www.advertisement.com use the script
PHP Code:
<script language="text/javascript">
if(
"http://www.site.com/"!=top.location)
            
top.location="http://www.site.com";
</script> 
__________________

Last edited by capostrike93; 12-26-2010 at 07:36.
capostrike93 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode