Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Cloaking URL?

  1. #1
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Toronto, Ontario
    Thanked 122 Times in 122 Posts

    Question Cloaking URL?

    ok, I've build a link directory, and categories, sub-categories, and optional additional categories with in those.

    I make a script to read all of these and make folders using the cat & sub-cat names and generated index.php files within them all.

    this was to make linking simpler for users linking back to the site.

    so how insted of
    they just see:

    only problem is that when I go to http://localhost/links/canada/videogames/,
    right away it change in the address bar back to that long messy querystring.

    is there a way to make it show as only ?http://localhost/links/canada/videogames/

    and if so, could some one please show me an example of show this can be done?

    thanks in advance for your time!

  • #2

    Thinking about the average site visitor...

    Usually URLs are given out like www.mydomain.com/page and eithter "page" is a folder (so the writing was not correct because the last slash was missing) or "page" was (usually) a html page so the URL would then also actually not have been correct, because the .html was missing.

    Yet thanks to intelligent browsers, the end the user always gets to an "index.html" file inside the "page" folder or to the "page.html" file.

    HOWEVER: with php - for me - this aint working

    I like it how the apple.com site does it.. they never show any ".php" stuff.

    I'm thinking for the end user now -- like transmitting an URL quickly through an advertisement or over the phone...

    So, how to accomplish this visitor friendlyness, yet using php ?

  • #3
    New Coder
    Join Date
    Jul 2005
    Perth, Australia. Age: 13
    Thanked 0 Times in 0 Posts
    That doesn't use PHP, it uses mod_rewrite in .htaccess
    I lost my signature, have you seen it?
    I have the power to erase you...


    Posting Permissions

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