2

I have showing the ad banners in .../openx/banner.php

Each Banner I had set the Banner Link.

After clicking the Banners the Page is redirected with the following URL.

.../openx/www/delivery/ck.php?oaparams=2__bannerid=1__zoneid=1__cb=5b97a864fe__oadest=http%3A%2F%2Fwww.google.com

Here is the root URL : openx/

I want to remove the last segment that is oadest=http%3A%2F%2Fwww.google.com when the page is loaded.

Please anyone help me...

Thanks...

kpmDev
  • 1,330
  • 1
  • 10
  • 28

1 Answers1

0

Assuming this string is always at the end of your url, try putting this in the appropriate place on your .htaccess file:

RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*)oadset=(.*)$
RewriteRule ^/?ck\.php$ /ck.php?%1 [L]
Itay
  • 16,601
  • 2
  • 51
  • 72
  • Thanks for ur time Itay... I have placed into .htaccess file... But it shows the following error...`Forbidden You don't have permission to access /projects/openx/www/delivery/ck.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.` – kpmDev Aug 30 '13 at 05:42
  • When you delete these rows from the file, can you access this url? – Itay Aug 30 '13 at 06:30
  • If i delete the specific segment from URL `oadest=http%3A%2F%2Fwww.google.com` by hardcode from address, It works good Itly. – kpmDev Aug 30 '13 at 07:18
  • I can't see the problem... Sorry – Itay Aug 30 '13 at 08:09