Dynamic URL Enquiry..

zackm

Junior Member
Joined
Dec 11, 2010
Messages
195
Reaction score
39
Hi, I have a question for technical people here:

How do I create a dynamic URL? Via index file or via htaccess?

Example,

1) User visits www.mywebsite.com/abdkjfalsdf

2) But this URL doesn't actually exist

3) Therefore, user will get redirected but I still want www.mywebsite.com/abdkjfalsdf to be the referral URL

4) It can be redirected to a static page but the referral URL has to be the site that user types in. In this case, www.mywebsite.com/abdkjfalsdf


Is there a way to do it?
 
Probably it can be done with an http referer parameter if you make a php script that does that. What benefit would you have from that?
 
redirect all 404's to a PHP script which loads up the correct page.

It can be done with htacess.
 
redirect all 404's to a PHP script which loads up the correct page.

It can be done with htacess.

How about the referrer? Do u have a sample PHP file for this?

I'm not looking for a redirect but rather a dynamic URL which will be the referrer..
 
Probably it can be done with an http referer parameter if you make a php script that does that. What benefit would you have from that?

Hi hideora,

I don't want my aff manager to know my source of traffic and keywords used. But at the same time, I want to track the keywords performance myself.

So, each keyword will have a unique URL.

The current setup I have is setting up the unique URLs one by one as static pages.

I was wondering if this can be done dynamically or there would be millions of files in future if I were to expand on the keywords.

Thanks..
 
Anybody else? Somebody?

Nobody?
 
Anybody else? Somebody?

Nobody?

htaccess rewrite url !

I used custom htaccess to redirect for dynamic url's to better index page and mask links to search engines. Tho I used It as BH methdod, site is running for 7 months and still no bans from G (I have made few modifications to hide/generate/redirect a lof of shit on my site to make it traffic effecient :))) )

If you want part of htaccess PM with description wount give all out but can help you with small code snipper :)
 
Probably something like this...

PHP:
<?php 
header("Location: /myaffilate-section?some-affiliate-url-var-name=" . $_SERVER['REQUEST_URI']);
?>

Replace /myaffilate-section?some-affiliate-url-var-name= with the url you want to go to.

$_SERVER['REQUEST_URI'] will contain the /abdkjfalsdf string.
 
Hey thanks but I don't really get this.. Where will the default page be located at?

Probably something like this...

PHP:
<?php 
header("Location: /myaffilate-section?some-affiliate-url-var-name=" . $_SERVER['REQUEST_URI']);
?>

Replace /myaffilate-section?some-affiliate-url-var-name= with the url you want to go to.

$_SERVER['REQUEST_URI'] will contain the /abdkjfalsdf string.
 
Anybody? Somebody?

Here is basic idea what I'm trying to achieve.

User types http://myURL.com/abcde

myURL.com/abcde --> http://my2ndURL.com/blankreferer/?http://myURL.com/zgo/abcde


If user types http://myURL.com/gsdfgsdf

myURL.com/gsdfgsdf --> http://my2ndURL.com/blankreferer/?http://myURL.com/zgo/gsdfgsdf


They will all lead to the same page:

http://my2ndURL.com/blankreferer/?http://myURL.com/zgo/gsdfgsdf --> http://affiliatewebsite.com
http://my2ndURL.com/blankreferer/?http://myURL.com/zgo/abcde --> http://affiliatewebsite.com


I would like to know how to do the redirect in htaccess and also what would be inside the /zgo directory? Example index php file or what?


Thanks..
 
Using a cloaking and any of the better trackers can do this for you. With the scenario you mentioned you could detect an empty referrer (type-in traffic) or just use the cloaker's servers.

The flow is cloaked domain --> p202 link (with referrer blanking) --> offer

Where "p202" is Prosper202, a popular opensource tracking tool. You can equally use iMobiTrax, CPVLab, etc.
 
Back
Top