Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Domain Trader

Today's drop date is 19-12-2009   All times are GMT. The time now is 03:23:33 AM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration 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

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-04-2005, 06:40:42 PM     #1 (permalink)

 
paullas's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 3,076
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
__________________
Thanks

Paul.
Latest domains for sale on my twitter account at http://www.twitter.com/dnukcouk
paullas is offline  
Old 05-04-2005, 06:54:13 PM     #2 (permalink)
apd

 
Join Date: Mar 2005
Posts: 689
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  
Old 05-04-2005, 07:00:22 PM     #3 (permalink)

 
paullas's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 3,076
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
__________________
Thanks

Paul.
Latest domains for sale on my twitter account at http://www.twitter.com/dnukcouk
paullas is offline  
Old 05-04-2005, 07:24:16 PM     #4 (permalink)
apd

 
Join Date: Mar 2005
Posts: 689
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  
Old 05-04-2005, 08:03:10 PM     #5 (permalink)
apd

 
Join Date: Mar 2005
Posts: 689
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  
Old 06-04-2005, 06:10:09 PM     #6 (permalink)

 
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  
Old 06-04-2005, 07:53:21 PM     #7 (permalink)

 
paullas's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 3,076
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
__________________
Thanks

Paul.
Latest domains for sale on my twitter account at http://www.twitter.com/dnukcouk
paullas is offline  
Old 06-04-2005, 10:18:02 PM     #8 (permalink)
Administrator
 
admin's Avatar
 
Join Date: Jun 2004
Posts: 7,191
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  
Old 06-04-2005, 10:26:02 PM     #9 (permalink)

 
paullas's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 3,076
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.
__________________
Thanks

Paul.
Latest domains for sale on my twitter account at http://www.twitter.com/dnukcouk
paullas is offline  
Old 06-04-2005, 10:46:44 PM     #10 (permalink)
rob

 
rob's Avatar
 
Join Date: Jan 2005
Posts: 4,593
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  
Closed Thread



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

UK Cheapest


All times are GMT. The time now is 03:23:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".