dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Hide a link

  1. #1
    Join Date
    May 2007
    Posts
    77

    Hide a link

    Hi,

    How can I make this in php?

    I have this link
    http://www.site.com/12345678/somefile.rar

    And I like to have this:
    http://www.site.com/........../somefile.rar


    Thank you for your help

  2. #2
    Join Date
    Jul 2009
    Location
    Falls Church, Va.
    Posts
    780
    Hmmm...

    Probably best to consider URL rewriting (i.e. Apache's mod_rewrite module). If your web server is Apache then you need to make sure mod_rewrite module is enabled and then either add to global config or a local .htaccess file the proper commands to rewrite a URL. This requires basic knowledge of how Apache works.

    The concept is you show the user the "hidden" link, which is an actual link you set in the anchor href as normal. When they click on it, your Apache will rewrite it to the real link.

    Complete details on the above is here, with examples (novice tutorial).

    Let me think about it some more, wait for others to reply with additional ideas.

    -jim
    Last edited by SrWebDeveloper; 02-17-2010 at 08:03 PM. Reason: fixed broken link

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles