Search in this category, there is already an excellent thread about that!
header('Location: bla')
just as teaser
Hey buddies,
im trying like already all day into doing this... but can't and seems impossible. Can someone tell me if it is possible and how can I keep my referer after .htaccess (RewriteRule) or php header redirection?
Best,
h
<script type="text/javascript">
<!--
window.location = "http://www.redirect-url.com/"
//-->
</script>
Great information guys! You know, I havent been in this section of the forums at all yet! There is just sooo much to learn when you start out as a complete n00b with skills only in cs source. But as for the meta refresh, is it possibly to execute a meta refresh on a forum sit that only allows tag? Thanks[/QUOTE]
No, unless there is some major loophole in their CSS (cross site scripting) protection. (Plus, I'm sure that'd piss off a LOT of people)
Dude I know that php code and I tried it but it clears the referer. But I want to prevent that. I want to keep my referer. Actually im about to come with a solution, will share it with you guys
Did you find a solution to pass the referer with htaccess?
Unfortunately not. The only way to do it is by using javascript redirection. The code is on already posted on BHW.
I've been reading about a technique where you could pass your referer as querystring attached to your url (with htaccess). then write a script that reads the query.
if I find out how exactly i'll post it here..
This code works fine on FF & Chrome but not on IE, Is there a way to pass the ref or fake the ref with a redirect that works on IE too? Any ideas?javascript is the most reliable way to pass the referer. Using php or meta refresh will blank the referer most the time except in the Safari browser
Something like this should pass the referrer without issue.
Code:<script type="text/javascript"> <!-- window.location = "http://www.redirect-url.com/" //--> </script>
Hope that works for you.