Redirect a SharePoint Library URL to an HTML Page
Question details
The user wants a SharePoint library URL to open an inner index.html page instead of the library view.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- A visitor opens a URL such as /apuestas-deportivas and should reach /apuestas-deportivas/index.html.
- Observed behavior
- The library URL opens the document library's AllItems.aspx view instead of redirecting to index.html.
Confirm whether the SharePoint environment is Online or on-premises, and test the full index.html URL to see whether it opens in the browser or downloads. Also check whether you control the hostname used by visitors.
Check the SharePoint environment and target page
Use this approach to identify the appropriate redirect options before changing the library URL.
A document library URL can open its default AllItems.aspx view; it does not automatically treat index.html as a default page. HTML rendering behavior can also depend on the SharePoint environment and its security settings.
Ask your SharePoint administrator whether the site runs in SharePoint Online or on-premises, and provide the library URL and desired index.html URL.
Enter the full /apuestas-deportivas/index.html URL in a browser and check whether the page renders, downloads, or returns an error.
For SharePoint Online, ask your administrator about an established redirect method for your setup. For an on-premises installation, post the URL structure and SharePoint version in a dedicated SharePoint community forum for environment-specific guidance.

Evaluate a redirect on a hostname you control
Use an organization-managed web server or proxy when visitors can use a hostname that your organization controls.
Work with Office files using WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility, making it easy to move between office suites. It does not configure SharePoint redirects.

Frequently Asked Questions
Why does the library URL open AllItems.aspx?
SharePoint can open a document library's default view when you visit the library URL. That URL does not automatically redirect to an index.html file stored in the library.
Will a redirect make index.html display in the browser?
Not necessarily. Open the full index.html URL directly first. Depending on the environment and security settings, SharePoint may download the file rather than render it.
Can I configure a redirect on a SharePoint Online hostname through my own proxy?
You cannot add your own proxy rule to a Microsoft-managed SharePoint hostname. Ask your administrator about supported redirect options or a separate visitor-facing hostname your organization controls.
What information should I provide when asking for help with an on-premises redirect?
Provide the SharePoint version, the source library URL, the full index.html target URL, and the result of opening the target directly. Post these details in a dedicated SharePoint community forum.




