PDA

View Full Version : URL Masking in PHP


cancer10
07-09-2006, 09:51 AM
Does any of you know how to mask a URL in php?? Like the one you see in free URL redirectional services (http://www.shorturl.com)

I mean I have a url like http://www.my-server.com/

which will redirect me to http://www.some-other-server.com/abc.php


by the following PHP command

header("location: http://www.some-other-server.com/abc.php");


But I want the URL in the address bar of my browser to show only this URL

http://www.my-server.com/



Is this possible??





`

Vin0rz
07-09-2006, 11:54 AM
Not in PHP, PHP is meant to edit just the HTML (OK, and graphics and stuff with extensions), not to edit the browser. You could do it using an <iframe> or just frames, but I do not recommend it.

kaisellgren
07-10-2006, 12:06 PM
You could use a redirection service that allows url cloacking.