I’m developing a theme for wordpress that uses AJAX to load blog posts. To get this to work though, I needed to add .html to the end of my permalink structure to create virtual static pages. However, if you change it back to normal, it breaks the theme. Is there a way to do this in the theme? Either change the permalink structure or access a .html version of each blog post no matter what the permalink structure?