Howto remove url string after domain?

Discussion in 'OT Technology' started by 2000GT, Jan 25, 2007.

  1. 2000GT

    2000GT Active Member

    Joined:
    Jan 21, 2001
    Messages:
    5,767
    Likes Received:
    6
    Location:
    Vancouver
    Is there a simple way to remove the url string after the domian name when hosting a website on IIS (win2k server)

    Basically I have a site:

    http://www.mywebsite.com

    When I go to different pages (html and asp pages) the string follows the domain name ie:

    http://www.mywebsite.com/pages/contact.asp

    I have seen lots of sites which just display the domain name and never change uptop.

    I assume its the way the site is coded, but I am posing the question because I am unsure.
     
  2. retorq

    retorq What up bitch??

    Joined:
    Dec 14, 2006
    Messages:
    6,061
    Likes Received:
    0
    Location:
    Mohave Desert
    .htaccess files that use mod_rewite rules will do what you want.
     
  3. AVengeance

    AVengeance Active Member

    Joined:
    Aug 17, 2004
    Messages:
    22,615
    Likes Received:
    0
    Location:
    In my bunker Position:Hunkering
    You could also have your main page a FRAMESET, with only one frame. Then, every link you click on would be inside the "frames" and the parent URL would never change.
     
  4. 2000GT

    2000GT Active Member

    Joined:
    Jan 21, 2001
    Messages:
    5,767
    Likes Received:
    6
    Location:
    Vancouver
    and I can run that with IIS?
     
  5. Slid.

    Slid. I'm a guy.

    Joined:
    Oct 25, 2001
    Messages:
    1,928
    Likes Received:
    0
    Location:
    NH
    .htaccess is apache only.
     
  6. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    Simple but hackish solution: use frames.
     
  7. hsmith

    hsmith OT Supporter

    Joined:
    Feb 24, 2002
    Messages:
    124,469
    Likes Received:
    564
    Location:
    Your mother.
    why do you want to do that? it makes no sense
     
  8. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    What's the point of doing that? It makes it harder for people to navigate around your site. If you don't have a HOME link on every page, for example, users won't be able to go to the homepage just by deleting the URL folder and filename -- they''ll have to load the page all over again.
     
  9. 2000GT

    2000GT Active Member

    Joined:
    Jan 21, 2001
    Messages:
    5,767
    Likes Received:
    6
    Location:
    Vancouver

    I do have a home link on all pages, and in retrospect, I think it is actually better to keep the pages displayed in the address bar for a basic site like this for navigation purposes.
     
  10. AVengeance

    AVengeance Active Member

    Joined:
    Aug 17, 2004
    Messages:
    22,615
    Likes Received:
    0
    Location:
    In my bunker Position:Hunkering
    The home page frame could have links that would help a web robot not to dead-end. I've done this in the past, but we're moving away from frames on all the websites I work with.
     
  11. AVengeance

    AVengeance Active Member

    Joined:
    Aug 17, 2004
    Messages:
    22,615
    Likes Received:
    0
    Location:
    In my bunker Position:Hunkering
    echo?
     
  12. crazybenf

    crazybenf Active Member

    Joined:
    Nov 14, 2001
    Messages:
    15,575
    Likes Received:
    2
    ditch IIS, install apache and use mod_rewrite.
     
  13. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    If Apache weren't so damned finicky, and if IIS didn't already come free with the Windows that the OP is already using, I'd agree. But I absolutely hate the idea of configuring the main software package that my machine will be running by EDITING TEXT FILES. In 1989 that was acceptable; in 2007, not so much.
     
  14. CrazyInteg

    CrazyInteg Honda-Acura.net OG

    Joined:
    Dec 30, 2000
    Messages:
    12,205
    Likes Received:
    3
    Location:
    Omaha
    lol your windows config stuff is stored in text files also. Microsoft just made a nifty GUI for their config. Apache is great, and free.
     

Share This Page