Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Affiliate Future

Today's drop dates are 27-03-2009 & 03-04-2009  
All times are GMT. The time now is 05:53:09 AM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Lists SedoPro Code Domains For Sale NameDrive Domain Parking
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Domain Parking > General Domain Parking

General Domain Parking Discuss Domain Parking options for your portfolio. click here for a Domain Parking guide

Reply
 
Thread Tools Display Modes
Old 05-04-2005, 05:40:42 PM     #1

 
paullas's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 2,520
paullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond repute
Classified Rating: 100% (1)

parking script needed

i am after a parking script that is url dependant.

example:

i have domain.co.uk as the main sites and
domain1.co.uk
domain2.co.uk
domain3.co.uk parkked at domain.co.uk

what i want is a script on domain.co.uk so when someone types in domain1.co.uk the script at domain.co.uk will look at the url and display the page for domain1.co.uk and so on....

anyone any ideas on where i can find sucha script

i have a linux server and hosting is all sorted.

laskos
paullas is offline   Reply With Quote
Old 05-04-2005, 05:54:13 PM     #2
apd

 
Join Date: Mar 2005
Posts: 684
apd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond repute

What language? If it's perl I can knock you up a script.
apd is offline   Reply With Quote
Old 05-04-2005, 06:00:22 PM     #3

 
paullas's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 2,520
paullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond repute
Classified Rating: 100% (1)

.

hi

i dont mind but i will have 500+ domains parked at one domain name(site) so the script will need to cope with directing each domain to the appropriate page

PHP preffered but i will look at other languages.

laskos
paullas is offline   Reply With Quote
Old 05-04-2005, 06:24:16 PM     #4
apd

 
Join Date: Mar 2005
Posts: 684
apd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond repute

Well the way I would do it is- what ever domain is typed in it will go to your main domain where a script will look up a database file and search for a match of the referer url and if found will redirect to a specified page, i.e.

domain1.co.uk|loans.html
domain2.co.uk|cars.cgi
domain3.co.uk|house.php

etc

probably about 10 lines of code and a .db file with an entry for each domain that you own.

I've never tried php but if you prefer php then the script above should be easily found.
apd is offline   Reply With Quote
Old 05-04-2005, 07:03:10 PM     #5
apd

 
Join Date: Mar 2005
Posts: 684
apd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond reputeapd has a reputation beyond repute

If you can use perl then hopefully this will do what you want:

-------------------------------------------------------------------------
#!/usr/bin/perl -wT

use strict;

my $url = $ENV{'HTTP_REFERER'};
my $main_page = "index.cgi";

open (DOMAINS_DB, "< domains.db");
my @JUMP = <DOMAINS_DB>;

# Loop through database file
foreach my $row (@JUMP) {
chomp($row);
my ($domain, $page) = split(/\|/, $row);

if ($domain eq $url) {
# If found jump to new landing page
print "Location: $page\n\n";
}
}

close (DOMAINS_DB);

exit(0);
-------------------------------------------------------------------------

Example of domains.db file


www.domain1.co.uk|loans.html
www.domain2.com|people.cgi
www.domain3.co.uk|money.php
etc
etc
apd is offline   Reply With Quote
Old 06-04-2005, 05:10:09 PM     #6

 
Join Date: Jan 2005
Posts: 160
mishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond reputemishmash has a reputation beyond repute

Use .htaccess

For efficiency you might want to look into using .htaccess

In which you could obtain the refering domain using:
%{HTTP_referer}
If you have a separate .html file for each domain you could do something like:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http:[^.]+.([^.]+).co.uk/ 
RewriteRule /* http://www.domain.com/$1.html
Or depending on what you're doing something like:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http:[^.]+.([^.]+).co.uk/ 
RewriteRule /* http://www.domain.com/parked.php?domain=$1

I've not tested the above but I know the idea works, the apache docs on this are:
http://httpd.apache.org/docs/mod/mod_rewrite.html
mishmash is offline   Reply With Quote
Old 06-04-2005, 06:53:21 PM     #7

 
paullas's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 2,520
paullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond repute
Classified Rating: 100% (1)

.

very interesting replies guys, if anyone has a php script that can look at individual index.php files depending on what url is coming to the domain i would appreciate it. I also willing to pay if someone can comeup with one that monitors stats aswell

thanks in advance.

laskos
paullas is offline   Reply With Quote
Old 06-04-2005, 09:18:02 PM     #8
Administrator
 
admin's Avatar
 
Join Date: Jun 2004
Posts: 6,824
admin has disabled reputation

Which is more SEO friendly? .htaccess or a script?
__________________
9p Domains | Domain Appraisal | Droplists | Domain Brokerage | Find Valuable Domains | Link to us | Domain Software
New to UK Domain Names? - Go Here | Diet | Domain Transfers | Domain Auctions
Make more money from your Domain Names with SedoPro - PM for a free activation code!
admin is offline   Reply With Quote
Old 06-04-2005, 09:26:02 PM     #9

 
paullas's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 2,520
paullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond reputepaullas has a reputation beyond repute
Classified Rating: 100% (1)

.

not sure admin to be honest, can anyone give advice on this.
paullas is offline   Reply With Quote
Old 06-04-2005, 09:46:44 PM     #10
rob

 
rob's Avatar
 
Join Date: Jan 2005
Location: Edinburgh / Brisbane / Wales
Posts: 4,051
rob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond repute

Both can be equally good - it depends how they are setup.
rob is offline   Reply With Quote
Reply



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT. The time now is 05:53:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93