Nautikal
03-28-2003, 04:35 PM
Does anyone know how you can have a requested URL value displayed within a webpage?
What I'd like to do is create a webpage to be used for Parking Domains and then when someone enters abc.com for example, the webpage would load up and display:
The following domain: abc.com is currently parked.
What I'm trying to avoid is creating a custom parked page for each parked domain.
Any input is appreciated.
Cheers.
ubergeek22
03-28-2003, 06:33 PM
I'm pretty sure this could be done with basic SSI (Server Side Includes), or even better a few lines of code - do you have access to PHP or ASP?
For more on SSI, look at http://www.bignosebird.com/ssi.shtml
Nautikal
03-29-2003, 12:58 AM
I found a way around it by using Javascript. Using the following bit of code wiill display the current URL which is open. Therefore as long as the parked URL is redirected to the correct page it works like a charm.
<script>
document.write('<br><center>'+window.location+'</center>')
</script>
Thought I would post it in case anyone else could use it.
fjiwa
04-04-2003, 02:51 AM
On a related note.... how do I create a parking page?
For example, all domains pointed at my nameservers which do not have a virtual account all get forwarded to this parking page.
Streetsmart
04-24-2003, 09:55 AM
I just create a subdomain and then park whatever domains I need to under it.
I've found that to be the easiest for me.
Hope that helps you.
T.J.
digitok
04-24-2003, 10:29 AM
you can also do:
<? echo($_SERVER['HTTP_HOST']); ?>
(php).
This will echo the url the user entered, eg.
http://domain.com echo's domain.com
http://www.domain.com echo's www.domain.com