Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2015
    Posts
    2
    Member #
    51119

    how to redirect home page to random links?

    I want to redirect/forward my home page to the random links. every refresh of the page it redirects to a new page. how can i make it?

  2.  

  3. #2
    Senior Member timbo89's Avatar
    Join Date
    May 2015
    Location
    Adelaide, South Australia
    Posts
    126
    Member #
    49722
    Liked
    26 times
    this sounds like a request to make a spam page.

    H76: Using meta refresh to create an instant client-side redirect | Techniques for WCAG 2.0

    give that a read, use php or java to add a random url.

  4. #3
    Junior Member
    Join Date
    Jul 2015
    Posts
    2
    Member #
    51119
    Quote Originally Posted by timbo89 View Post
    this sounds like a request to make a spam page.

    H76: Using meta refresh to create an instant client-side redirect | Techniques for WCAG 2.0

    give that a read, use php or java to add a random url.
    spam page? far from it.
    and your example is just for a simple redirect page. my question was for multiple links to redirect.

  5. #4
    Senior Member timbo89's Avatar
    Join Date
    May 2015
    Location
    Adelaide, South Australia
    Posts
    126
    Member #
    49722
    Liked
    26 times
    as i said, use php or java to add a random url, read both of these

    H76: Using meta refresh to create an instant client-side redirect | Techniques for WCAG 2.0
    php - How to echo random line from text file? - Stack Overflow

    and then do something like this:

    PHP Code:
    <meta http-equiv="refresh" content="0;URL='<?

    $urllist 
    urllist.txt;

    $lines file($filenameFILE_IGNORE_NEW_LINES);
    echo 
    $lines[array_rand($lines)];

    ?>'" />
    your list of random urls just needs to be saved in a file named urllist.txt for this example to work, each url on a new line


Remove Ads

Posting Permissions

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

Tags for this Thread

All times are GMT -6. The time now is 07:37 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com