Page 1 of 1

Reprogamming URL

Posted: Thu Apr 28, 2005 2:26 pm
by alexfung
hello does anyone know how to mask the original url address and instead display another address in the address bar?

for example let my address be ....
http://www.somewhere.com/mydomain/index.html

but i would like it displayed in the address bar as
http://www.mydomain.com/index.html ...

Provided that I do own the domain mydomain.com

One way I had been thinking is using rewrite mod in the .htaccess, but is it only for redirecting i.e. the address bar will be updated to the physical address?

Thanks alot

Posted: Thu Apr 28, 2005 2:39 pm
by Pyrite
I dunno, would creating a CNAME record in your DNS work? I'm pretty sure I've seen it done through DNS, but I don't remember exactly.

Posted: Thu Apr 28, 2005 3:22 pm
by hawleyjr
Sounds like phishing to me...and you won't be able to do it unless you discover a flaw in a browser.

If it were simple every email you got would point to paypal.com :)

Posted: Thu Apr 28, 2005 3:47 pm
by andre_c
hawleyjr wrote:Sounds like phishing to me...and you won't be able to do it unless you discover a flaw in a browser.

If it were simple every email you got would point to paypal.com :)
Not really phishing if he owns the second domain.

Posted: Thu Apr 28, 2005 4:10 pm
by Pyrite
Or may be he owns the domain, but can't afford hosting.

http://www.mydomain.com >>> http://www.geocities.com/mysite/ :D

Perhaps something like http://www.zoneedit.com/ would do it?

Posted: Fri Apr 29, 2005 12:43 am
by alexfung
Thanks, maybe I should express my problem in more detail.

I own three domain and rented a space in web hosting company in one of the domain.

Afer gaining approval from the webhosting, I was allowed to redirect those two domains into the rented webspace.

But of the address bar will show like this
http://www.shareddomain/firstdomain/index.html

I was able to use masking provided by my domain registant (mydomain.com), but the url will be locked to http://www.firstdomain.com no matter which subfolder I was browsing, which will keep the visitor lost easily and unable to bookmark pages, so I would cordially ask for a method to make the url starts at the firstdomain.com's subfolder, and still able to updated its true address among the subfolders under it. Thanks.

Posted: Fri Apr 29, 2005 5:07 am
by timvw
my guess this is your situation:

domain1 has a index.html with code like

Code: Select all

<frameset>
<frame src=&quote;http://domain2/index.html&quote; />
</frameset>
which would explain what you are experiencing...
this url-hiding/beautifying "technique" is something i really don't like :)

Posted: Sat Apr 30, 2005 5:14 pm
by alexfung
Thanks, but other than using frames, is there any other way to do it, as not all browser supports frame and I am trying to avoid it.

Thanks alot.

Posted: Sat Apr 30, 2005 11:26 pm
by malcolmboston

Posted: Sun May 01, 2005 10:26 am
by Chris Corbyn
malcolmboston wrote:Mod Rewrite
Not sure that will work cross-domain Mal

Posted: Thu May 05, 2005 4:20 am
by alexfung
Thank you Malcom, I had been digging into ModRewrite but so far not able to work it out. I would be very grateful if you could give me any bits and pieces on what to put in the .htaccess. Thank you very much.