Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Free Virtual Servers

Today's Drop Dates are: 07-11-2011 or 14-11-2011   All times are GMT. The time now is 01:20:35 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > General and Domain News > General Board
Connect with Facebook

General Board General discussions. Please check main forum categories before posting here.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-03-2010, 12:39:35 AM     #1 (permalink)

 
Join Date: Feb 2006
Posts: 550
retired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond repute

Little help

Hi guys,

i posted a month ago regarding DNS and who to direct all domain names to one page, sorted that thanks to a few on here.

Next question is as i am having 1 generic page is there anyway for me to list the domain name they have been diverted from on the page?

ie, The domain name (domainname.co.uk) may be for sale. Red static text, domainname.co.uk the dynamic bit.

Any help would be great.
retired_member15 is offline  
Old 07-03-2010, 01:35:26 AM     #2 (permalink)

 
alex's Avatar
 
Join Date: Sep 2007
Location: Rutland and Durham, UK
Posts: 527
alex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond repute

I don't know if this is the best way of doing things, but one way to get it to work is to create a php holding page that redirects to another page on your generic website. There a session will be set and then further redirected to the landing page.

EDIT: This code required manual intervention. Below I've produced a script that is completely automated.
__________________
Tag: ALEXJORDAN Sites: alexjordan.co.uk | Griptape.co.uk
For Sale/Offers Invited: LLL.org.uk | VVV.org.uk | 090.co.uk | 029.co.uk

Last edited by alex; 07-03-2010 at 10:12:01 AM.
alex is offline  
Old 07-03-2010, 02:03:25 AM     #3 (permalink)

 
Join Date: Feb 2006
Posts: 550
retired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond reputeretired_member15 has a reputation beyond repute

Wow, thanks for that Alex, rep added for this post!

Does this show where you have come from? I have forwarded 01925.co.uk and just get "The domain name your domain here may be for sale"

Have i done something wrong

What i am looking for is something that knows where i have come from originally, like the domain name 01925.co.uk is for sale without me typing 01925? dont know if it can be done as i am shit with this stuff lol.

Last edited by retired_member15; 07-03-2010 at 02:07:17 AM.
retired_member15 is offline  
Old 07-03-2010, 02:24:58 AM     #4 (permalink)

 
alex's Avatar
 
Join Date: Sep 2007
Location: Rutland and Durham, UK
Posts: 527
alex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond repute

No problem, glad to help. Thanks for the rep.

EDIT: the code requires some manual intervention. I'll make you an automated script now and PM it to you.
__________________
Tag: ALEXJORDAN Sites: alexjordan.co.uk | Griptape.co.uk
For Sale/Offers Invited: LLL.org.uk | VVV.org.uk | 090.co.uk | 029.co.uk

Last edited by alex; 07-03-2010 at 03:12:09 AM.
alex is offline  
Old 07-03-2010, 02:28:04 AM     #5 (permalink)

 
alex's Avatar
 
Join Date: Sep 2007
Location: Rutland and Durham, UK
Posts: 527
alex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond repute

PM sent with automated script that shows the original domain without you having to manually intervene other than pointing the domain to the file. Let me know if you have any problems.

Alex

Just tested, works perfectly
__________________
Tag: ALEXJORDAN Sites: alexjordan.co.uk | Griptape.co.uk
For Sale/Offers Invited: LLL.org.uk | VVV.org.uk | 090.co.uk | 029.co.uk

Last edited by alex; 07-03-2010 at 03:06:09 AM.
alex is offline  
Old 07-03-2010, 03:33:07 AM     #6 (permalink)
wb

 
wb's Avatar
 
Join Date: Mar 2009
Posts: 1,825
wb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond repute

For my domains I simply have a single page which I park all names ontop of. There is some basic PHP code which dispays the domain which has been typed in by the user (in the format "domain.co.uk") and works perfectly, if you still need this feel free to PM me and I'll let you know what to do
wb is offline  
Old 07-03-2010, 07:34:08 AM     #7 (permalink)

 
bensd's Avatar
 
Join Date: Jan 2007
Location: Wiltshire, UK
Posts: 3,955
bensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond repute

Quote:
Originally Posted by wb View Post
For my domains I simply have a single page which I park all names ontop of. There is some basic PHP code which dispays the domain which has been typed in by the user (in the format "domain.co.uk") and works perfectly, if you still need this feel free to PM me and I'll let you know what to do
I am looking to do the same thing at some point. Any chance you could post or pm me? Cheers
__________________
Me: blog | twitter
Current Projects: cheap hols | dvd players
bensd is online now  
Old 07-03-2010, 09:10:13 AM     #8 (permalink)

 
davedevelopment's Avatar
 
Join Date: May 2009
Location: Brough, East Yorks
Posts: 988
davedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond repute

My landing page, e.g. tqt.co.uk uses this:

PHP Code:
Looking for the domain <strong><?php echo htmlentities($_SERVER['HTTP_HOST']);?></strong>?
__________________
Me: Blog | Company | Twitter

Coming Soon: DaveDomains | DaveCatcher | FreeToReg.co.uk
davedevelopment is online now  
Old 07-03-2010, 10:10:18 AM     #9 (permalink)

 
alex's Avatar
 
Join Date: Sep 2007
Location: Rutland and Durham, UK
Posts: 527
alex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond reputealex has a reputation beyond repute

Quote:
Originally Posted by davedevelopment View Post
My landing page, e.g. tqt.co.uk uses this:

PHP Code:
Looking for the domain <strong><?php echo htmlentities($_SERVER['HTTP_HOST']);?></strong>?
This discovers the domain, but doesn't store the information and forward to a seperate domain.


This is the script I produced. It works fine, but wb's may be better.

This will automate everything, all you have to do is set the first index file as the home page for all the forwarding domains. Stages 2 and 3 willl need to go in a seperate directory.

1) create a directory on the server and name the following code ‘index.php’, then set this as the home page for any domain you want forwarding.

PHP Code:
<?php
$url 
$_SERVER['HTTP_HOST'];
header("location: http://www.[your generic domain].co.uk/receive.php?d=$url"); 
die(); 
?>
2) In a seperate directory, for the generic domain, name the following ‘receive.php’.

PHP Code:
<?php 
session_start
(); 
$domain $_GET['d']; 
$_SESSION['domain']=$domain
header("location: http://www.[your generic domain].co.uk/"); 
die(); 
?>
3) In the same directory name the following ‘index.php’.

PHP Code:
<?php 
session_start
(); 
$domain $_SESSION['domain']; 
session_destroy(); 
echo 
"<p style='color:F00'>The domain name $domain may be for sale</p>"
?>
NB: you will need to replace any [your generic domain] with the actual generic domain in the ‘index.php’ and ‘receive.php’ files.

This works with no problems, but seeing other posts in the thread others may be more experienced than me and can produce the same effect with minimal code.

Just to clarify, the above script displays with or without the 'www.' depending on whether or not it is typed in by the visitor when visiting the site. If you need it to always include/exclude the 'www.' then let me know and I'll update it.
__________________
Tag: ALEXJORDAN Sites: alexjordan.co.uk | Griptape.co.uk
For Sale/Offers Invited: LLL.org.uk | VVV.org.uk | 090.co.uk | 029.co.uk

Last edited by alex; 08-03-2010 at 10:26:34 PM.
alex is offline  
Old 07-03-2010, 02:21:35 PM     #10 (permalink)
wb

 
wb's Avatar
 
Join Date: Mar 2009
Posts: 1,825
wb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond reputewb has a reputation beyond repute

Alex's reply seems best for this post if you wish to forward to another domain

If however like my domains you want to have a parking page which can get indexed, use the following code wherever you want the URL to be displayed (this code automatically leaves out the "www." whether it is entered or not).

PHP Code:
<?php $hostname $_SERVER['SERVER_NAME']; $hostname str_replace('www.'''$hostname); echo $hostname?>
E.g. "The domain name [code above here] may be for sale."

You only need to set this code up on one domain (I suggest using something like "parked.your-business-website.co.uk"), then simply park all your names for sale ontop of it. Feel free to add rep if this has helped
wb 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

Domain Sponsor 2


All times are GMT. The time now is 01:20:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 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".