Need some HTML help

Status
Not open for further replies.

MagicTallGuy

Banned
Banned
175
2009
0
0
Hi guys,

i need some help with the :
[FONT=Arial, Helvetica]<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">

Redirect code
i need it not to show the referer i.e. lets say
domaina.com has the above code
and redirects to domainb.com
i dont want in domainb.com's logs that
the traffic is coming from domaina.com
so how to alter the above code so that no refer
is being shown ???
[/FONT]
 
8 comments
that traffic cannot be logged with a html refresh unlesy domana.com places the referer in the meta tag like so

DomainA:
Code:
[FONT=Arial, Helvetica][SIZE=2]<meta                   HTTP-EQUIV="REFRESH" content="0;                   url=http://www.yourdomain.com/index.html?referer=domaina.com">[/SIZE][/FONT]
DomainB:
PHP:
//You can log it in php for e.g
(isset($_GET['referer']) ? log_referer() : null);

function log_referer(){
//do logging code here
}
or my looking into your statistics program and filtering by the http GET "ref"

but domain a has to add that to there refresh meta tag
 
You can do that with php, modify headers, or use htaccess.

Edit:
litewarez, I think he means he doesn't want his site to be shown as referer?.. meh, might misunderstood.
 
:P - let me explain one more time :p

site1 (has a crappy domain and used to be an active site)
site2 (the new domain)

i want to redirect the traffic from site1 to site2 but i dont want
the traffic from site1 to show as traffic from site1 thats why i dont
want to show referer. but i cant find the proper code for it
(im newb to php hardly know anything about it Its all about HTML :P)
 
in that case you want to create a htacces file and add this

Code:
Options +FollowSymLinks 
RewriteEngine on 
RewriteRule (.*) http://www.domainb.com/$1 [R=301,L]

this will redirect all traffic form domain a to domainb and tell google etc that the domain has moved to domainb
 
in that case you want to create a htacces file and add this

Code:
Options +FollowSymLinks 
RewriteEngine on 
RewriteRule (.*) http://www.domainb.com/$1 [R=301,L]
this will redirect all traffic form domain a to domainb and tell google etc that the domain has moved to domainb


if i put the htaccess file in the public_html folder all domains which are situated there would not leave no referer if they where redirected to
the new domain ?? ( using [FONT=Arial, Helvetica]<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html"> )[/FONT]
 
i believe that method should redirect with the previous referrer..

so fir instance

Google --> domaina --> domainb (Referrer of "Google")

not 100% tho
 
or you can do with javascript

<script type="text/javascript">
document.location = 'http://www.domainb.com';
</script>

if that shows a referer then the only other way is to do a new window in javascript

<script type="text/javascript">
window.open(.....)
</script>
 
Status
Not open for further replies.
Back
Top