Results 1 to 4 of 4

Thread: Change address bar...

  1. #1
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default Change address bar...

    Is there some way to change what displays as the address/url of the page to something other than what really is?

    something like:

    Code:
    window.onload = function(){
         document.address = 'http://www.somethingfake.com';}
    Um, that didn't work. Any ideas?
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2007
    Location
    Canada
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    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.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •