Advertising URL?

I have a client that wants me to add its banner to my site! Now how can I link the image to the client website without using his domain name! But when clicked it will redirect to his website!

I don’t want to add external links to my homepage.

Why?

That’s… kind of the point of advertising?

2 Likes

Do you literally mean you don’t want the viewer to see the link “http://example.com” on the web page?

Or do you mean you do not want the image to be linked (click image, go to client site) - which is also what you’re asking for help with, so hence our confusion.

If it’s the prior, simply wrap the image in a link tag?

<a href="http://example.com" target="_blank"><img src="clientbanner.png" /></a>

It is pretty easy, basically all you need to do is:
create redirect.php then add redirect.php?id=1 as the link on the banner.

When someone click on the banner, the redirect script will send them to the correct website, and possibly also save statistics.

You can also make it look fancier by using mod rewrite to make the url look better etc.

Thanks buddy that it exactly what I am talking about!

Any SEO friendly way of doing that? What should I use to redirect that will not backfire and result in Google penalty?

You can add rel=“nofollow” to the banner link.

For forwarding from the php script, just use a header redirect.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.