Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about start-page

Read more about start-page

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - start-page

Serve random page for visitor (index page)

I'm using apache2 on Linux, and I'm wondering if it is possible to show a random index file to users that's visiting the site WITHOUT they see it so it always says: Https://example.com regardless if t...
test-img

Adam Larsson

php

random

apache2

start-page

Votes: 0

Answers: 1

Latest Answer

If you're willing to use PHP, then you can create an index.php file with this content: <?php $files = glob(dirname(__FILE__) . '/*.html'); print_r( file_get_contents($files[rand(0, count($f...
test-img

matigo

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved