Forum Moderators: open

Message Too Old, No Replies

Displaying Address In Page Body

         

astroblaster

1:37 pm on Nov 2, 2004 (gmt 0)

10+ Year Member



I have several domain names forwarded to just one site. I have masking on so the each url will apear in the address bar up top. I'm looking for some html coding to also make that url appear on the web page itself as well. Maybe as a title or in the body of the text. Thanks

BlobFisk

4:12 pm on Nov 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, astroblaster!

Why not use some JavaScript:

<h1><script type="text/javascript">document.write(document.location.href);</script></h1>

That should do the trick!

HTH

astroblaster

12:41 am on Nov 11, 2004 (gmt 0)

10+ Year Member



But, I want to display the page they typed in which is the site they think they are at. I'm looking to display the forwarded url.... not the actual url.

astroblaster

8:07 am on Nov 11, 2004 (gmt 0)

10+ Year Member



I was hoping it would be easy. It's in the IE address bar because I'm using the godaddy masking option to forward. Can't I just reference the address bar content somehow?

BlobFisk

9:14 am on Nov 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you controlling the page forwarding? Is it done view a 303 redirect or an actual physical page redirect?

If it is a page redirect then why not pass through the address (via a server side script) to the page and display it that way?

astroblaster

12:53 pm on Nov 11, 2004 (gmt 0)

10+ Year Member



A little to advanced for me. Godaddy has free forwarding when you buy a domain name. I just tell them where I want it forwarded to and if I want masking. I have a bunch of domain nmaes forwarded to one site that I build with CoffeCup and I have hosting serve for the one site I maintain active with Godaddy.

astroblaster

10:55 am on Nov 15, 2004 (gmt 0)

10+ Year Member



Godaddy gives me the option to add
"Dedicated Hosting IP Add a Dedicated Hosting IP to this account"
and the following controls to manage:
MX Records
Total DNS Control (Zone-File)
Aliased Domain Names

Would any of these controls help?

When I go to example.com the script displays example.com...

When I go to any of the forwarded sites the page comes up with error...

[edited by: BlobFisk at 12:36 pm (utc) on Nov. 15, 2004]
[edit reason] Examplified URL [/edit]

astroblaster

6:23 am on Nov 16, 2004 (gmt 0)

10+ Year Member



When I go to <snip>

Line: 62
Char: 1
Error: permission denied
Code: 0
url: [example.com...]

For some strange reason you have to move your mouse pointer over the area to get the error message to come up

[edited by: Woz at 7:33 am (utc) on Nov. 16, 2004]
[edit reason] no specifics please, see TOS#13 [/edit]