Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    329
    Thanks
    3
    Thanked 19 Times in 19 Posts

    Macintosh One url name for all pages without frames?

    Hi!

    Is it possible to go to a linked page on a Website without the url in the browser window changing?

    For e.g.
    The homepage is "www.mywebsite.com/homepage"
    When I click on a link this changes to "www.mywebside/myhomepage/linkedpage/"

    Is there a trick with css or html so that the url remains the same "www.mywebsite.com" even when I am on the homepage or linked page? Some way of hiding the name of the linked page (not using frames)?

    Probably not ... but I wonder?

    Thanks!

    Avril
    Last edited by Avril; 09-14-2007 at 07:42 AM. Reason: not clear

  • #2
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts
    Firstly id say don't do it, for users its going to be incredibly annoying if they cant copy and paste the valid URL.

    The only reason i can see for you to do it, is so that you are happy with the look of your page. But 99% of users either wouldn't care or look at the address bar, or would find it extremely annoying. I know I would!

    In answer to your question there is no way to do it with HTML/CSS or Java Script alone. The only way is to change your server settings to rewrite the URI on the fly. It is all described here

    http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

    P.S However I suggest don't do it
    You can not say you know how to do something, until you can teach it to someone else.


  •  

    Posting Permissions

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