View Full Version : Change address bar...

06-05-2007, 12:30 AM
Is there some way to change what displays as the address/url of the page to something other than what really is?

something like:

window.onload = function(){
document.address = 'http://www.somethingfake.com';}

Um, that didn't work. Any ideas?

06-05-2007, 02:09 AM
This is considered a security risk since you could pretend to be another site.

You could use a frame, which would keep the URL of the main frame while inner frames or iframes are changing URLs.

06-05-2007, 02:25 AM
You can't change the url of the page but you can make your url cleaner. But I assume that's not what you are looking for. For clean url, try this tutorial or you can always google for more tutorial on this topic.


06-05-2007, 03:52 PM
yeah, I know all of the .htaccess stuff. I just have two servers, and for the time being, the files for the one server are on another and I don't have time to move all of them over. I wanted to change the url to make it look like those files were on the other server.

Ha, frames make me sick. Haha.

But yeah, thanks anyway guys.