Please help How can i redirect to multiple website

rap8557

Banned - Selling via PM
Joined
Sep 15, 2008
Messages
2,000
Reaction score
631
Hey guys, i dunno how to do this..
I got 2 files
1. redirect.html
2. links.txt

How can i redirect a page to a list of websites.
for example

These are the website on my links.txt file
google.com
yahoo.com
aol.com
facebook.com
twitter.com
vine.co

When visitor A goes to my redirect.html page it will redirected to google.com
When visitor B goes to my redirect.html page it will redirected to yahoo.com
When visitor C goes to my redirect.html page it will redirected to aol.com
When visitor D goes to my redirect.html page it will redirected to facebook.com
When visitor E goes to my redirect.html page it will redirected to twitter.com
When visitor F goes to my redirect.html page it will redirected to vine.co
And When visitor G goes to my redirect.html page it will redirected to google.com and so on...

I've already searched for an answer but i didn't get any.

Thanks
 
Try this:

hxxp://gist.github. co m/hopki ns-matt/e16f964185767ad8e380
**fix the URL**
This will be a lot easier once I can post URLs on here.

Depending on the permissions set on your server, you may need to manually create an empty txt file named counter.txt.
 
what web-server/apps are u running? without this information this question has no sense
 
You will need to read that file , then you need to take that url where you want to redirect user ,use javascript to redirect simple.

But first tell what you are using plain html or php ,asp.net ??? on server side
 
If you can use PHP on your server it should be relatively simple.

First of all to check if you have PHP enabled, try creating a file with the extension .php . For example create 'test.php' with the contents:

Code:
<?php echo "PHP is working"; ?>

Save it and upload it to your server. Access that URL on your browser and if a blank page with the text "PHP is working" is shown (with nothing else), then you have access to PHP.

Let us know if you have access to PHP, in which case we can help you code it up!
 
Last edited:
Back
Top