Reprogamming URL

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
alexfung
Forum Newbie
Posts: 4
Joined: Thu Apr 28, 2005 2:21 pm

Reprogamming URL

Post 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
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post 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.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post 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 :)
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post 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.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post 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?
alexfung
Forum Newbie
Posts: 4
Joined: Thu Apr 28, 2005 2:21 pm

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 :)
alexfung
Forum Newbie
Posts: 4
Joined: Thu Apr 28, 2005 2:21 pm

Post 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.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

malcolmboston wrote:Mod Rewrite
Not sure that will work cross-domain Mal
alexfung
Forum Newbie
Posts: 4
Joined: Thu Apr 28, 2005 2:21 pm

Post 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.
Post Reply