Hi guys, I have a URL shortening script that I use on a couple of my domains. It generates a URL like domain.com/recommends/SEO which when clicked on goes to eg. seo.com/?affid=dafiz What I would like is for the URL to still be domain.com/recommends/SEO Am I right in saying that this can only be done using an iframe? Anyone know how to generate the iframe code dynamically? I imagine the static code would like something like this:- <html> <head> <title>Website</title> <style> html, body, iframe { margin: 0px; padding: 0px; border: 0; text-align: center; overflow-x: hidden; overflow-y: auto; } </style> </head> <body> <IFRAME SRC="http://www.site.com" scrolling="yes" width="100%" height="100%" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0" > </body> </html> Code (markup):
The current bit of code that does the redirect is header("Location:".$array['target']); Code (markup): What code would I need to replace this with to be able to accomplish the result I am after?
Thanks heaps @goliath (I have left you some rep also) I now have some working code. I ended up with the following in place of the header:location code echo '<frameset> <frame src="'.$array['target'].'"> </frame> </frameset>'; Code (markup): And it seems to be working a treat