Skip to main content
New Participant
April 21, 2006
Question

How to hide the URL (or URL masking)

  • April 21, 2006
  • 3 replies
  • 1277 views
Hi All,
Does anyone know how to hide the URL in the address bar. I saw some site looks like this:
http://www.site.com/contact
When I try to figure out which page this redirect to, I couldn't find out.
Here is a good example:

http://www.opensourcecu.com/
Contact Page: http://www.opensourcecu.com/contact
About Page: http://www.opensourcecu.com/pages/about

Thanks for any help!
    This topic has been closed for replies.

    3 replies

    Inspiring
    April 25, 2006
    What server are you using?

    If it's Apache, use mod_rewrite.

    If it's IIS, read this:
    http://www.petefreitag.com/item/286.cfm

    If you don't have the ability to set these up on your server, you can achieve a similar effect by using www.domain.com/index.cfm/about
    And then in index.cfm (or better, application.cfm) have something similar to this:
    New Participant
    April 24, 2006
    Thank you for you apply, stpza.
    but what I want is something like this,
    http://www.opensourcecu.com/pages/about
    not
    http://www.opensourcecu.com/pages/about/

    anybody has better idea?
    thanks!
    New Participant
    April 24, 2006
    When using the URL you won't need the trailing /

    So
    http://www.opensourcecu.com/pages/about

    will provided index.cfm is set up as a default document display

    http://www.opensourcecu.com/pages/about/index.cfm

    Hope this helps

    Ben
    Inspiring
    April 24, 2006
    quote:

    Originally posted by: benbest
    When using the URL you won't need the trailing /

    So
    http://www.opensourcecu.com/pages/about

    will provided index.cfm is set up as a default document display

    http://www.opensourcecu.com/pages/about/index.cfm

    Hope this helps

    Ben



    Maybe he's asking... /pages/ is the directory ; and about or contact is just a page ...not a new directory, therefore, about/index.cfm is not the case here.

    I've seen blogs create things like that, which looks like a directory & don't actually exist....but, I personally don't know how it's done.
    Participating Frequently
    April 21, 2006
    you dont need to add file name if you are requesting the default document.

    e,g www.mysite.com/index.cfm can be reached with www.mysite.com

    so.

    www.mysite.com/contact/index.cfm can be reached with www.mysite.com/contact/