@Irene Gunning Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.
As called out in the indexer documentation limitations, yes you cannot load .aspx file in SharePoint to an index.
One workaround to load .aspx to an indexer in SharePoint is by following the below steps:
- Use the SharePoint APIs/SDKs to get the ASPX data or the specific method available that you choose to crawl through the data.
- You can export the crawled data to blob storage and then you just need to use blob indexer for the content to be indexed accordingly (https://learn.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage).
Hope this helps, let me know if you have any further questions on this.