PDA

View Full Version : Change address bar...



alexjewell
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?

djr33
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.

pman
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.

http://www.kirupa.com/developer/php/clean_url_pg1.htm

alexjewell
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.