Results 1 to 2 of 2

Thread: random url string with every visit

  1. #1
    Join Date
    Dec 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default random url string with every visit

    Hi please can you help me with the code to generate a random url string with every visit. example http://www.mysite.com/a9nruiwe232rwerr whereby they all land on the same page but the url appears with different random extensions on the browser.

    I would really appreciate your assistance.
    Last edited by keyboard; 12-26-2014 at 12:32 PM. Reason: Format: Url Strip

  2. #2
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    286
    Thanks
    95
    Thanked 3 Times in 3 Posts

    Default

    Saskey,

    I'm a bit confused concerning what you are trying to do. Generating the random extension is simple in either javascript or php. What confuses me is that, if the extension is truly random, there will be no actual page that corresponds to the extension generated. That will cause a 404 error.

    Concerning generating the string itself, see the dialogue in the PHP forum, by borris83, 03-31-2009.

    A.

Similar Threads

  1. Stay on top - once per browser visit
    By wads24 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 09-01-2012, 02:16 PM
  2. Create string with random characters
    By borris83 in forum PHP
    Replies: 11
    Last Post: 03-31-2009, 07:05 PM
  3. Style Sheet Switcher (v1.1) - random style on every new site visit
    By matteus in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 07-07-2008, 04:09 PM
  4. How do I only run script on 1st visit?
    By A_Str8 in forum JavaScript
    Replies: 4
    Last Post: 12-20-2005, 05:01 PM

Bookmarks

Posting Permissions

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