Given a homepage at domain.com (e.g., domain.com/index.html), I want: 

1. outside requests to *only* be able to visit the homepage and no subpages
2. that homepage to successfully redirect visitors to a subpage (for example, domain.com/page1.html)

I can accomplish #2 with some simple JavaScript and `window.location.href = domain.com/page1.html`. But for #1, is there a way to reject access to internal pages if the referrer is coming from my domain.com? Basically the flow I'm looking for is:

1. outside visitor visits domain.com/index.html
2. domain.com/index.html redirects visitor to, for example, domain.com/page1.html
3. any attempt to visit domain.com/page1.html directly fails with a 404

I get that this may all seem nonsensical in terms of what it does. That's by design. I want a website that sends visitors to internal pages, but only if they get there through the homepage redirecting them to it.