Hi, I have some phppages with lots of outgoing links, all pointing to different places. I'd like to make something that all url's point to my own domain somewhere and from there on getting directed to the actual destination url. I want to do this to avoid outgoing to many different sites, which is bad for SEO purposes according to some people...
Not quite sure what you mean.. do you mean you want something along the lines of: Outgoing link: www.yourdomain.com/?out=123 then it will redirect to the proper link?
No, I just don't want to have links to 50 different domains... So i want to link like with tinyurl.com or something...
Okay, but what do you want us to do? You have these links in your pages. Why not edit them? It's not clear what you're asking for... Do you need the outgoing page that actually redirects? <?php if (isset($_GET['id'])) { $query = mysql_query("SELECT url FROM links WHERE linkid = ". intval($_GET['id'])) OR die(mysql_error()); if (mysql_num_rows($query)) { $link = mysql_fetch_assoc($query); header('Location: ' . $link['url']); } } ?> PHP:
No, that just places all the links on the page, with all different domains... Yes i want to point to a page like: mysite.com/page-to-use-to-point-to-all-over-the-site.php?destination=http://www.realdestinationurl.com/ Something like that