I want to make index.html the main page

What is the name of the domain?

65s.org

What is the issue you’re encountering

I want to make it so the default page is index.html. (when i go to 65s.org it shows me the index.html page, and when I go to a page like 65s.org/play/?id=3 it will show the user Loading... - StrongDog XP

Are you using R2 to host this content? If so, are you using R2 Custom Domain or Cloud Connector to route traffic to it from your domain?

If you’re using Cloud Connector, you can configure a URL Rewrite rule to change the URLs from https://65s.org/play/?id=3 to https://65s.org/play/index.html?id=3 dynamically. Something like this should work:

Using similar logic, you can configure a rule for root:

Here is an example from the documentation: Rewrite path of moved section of a website · Cloudflare Rules docs.

1 Like

would i need to do this for every page on my site? I have a few that end with nothing and i need it to show the index page. or could i just make it add index.html if it ends with a /?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

You can use wildcards to create dynamic patterns, similarly to the first example (with /play/*): Create a rewrite URL rule in the dashboard · Cloudflare Rules docs.