Have only ONE specific page parsed by SSI?
Posted by: Makosuke
Posted on: 2007-03-13 02:38:00
I searched around the forum and tried asking Google and didn't come up with anything, so here goes:
I've got one (and only one) file on my site that I'm wanting to add a small SSI include directive to. What I want to do is pretty simple: Get that page parsed but none of the others, and have it otherwise behave exactly as it has in the past.
Problem: A heap of links out there already point to index.html, not index.shtml.
Setting all .html files to get run through SSI is a total waste of processor, so that's out. I could use the XBitHack to do it, but the problem with that is my FTP software has a tendency to set the executable bit on HTML uploads, so I don't want to end up unnecessarily processing a heap of pages because of that, either.
I can (and for now, have) used an .htaccess line to redirect index.html to index.shtml, but the problem with that is if you go to the top level of the site (http://site.com/), instead of leaving it blank after the trailing slash it ends up tacking the full index.shtml on.
Yes, that's not a horrible thing, but isn't there some .htaccess trickery that can run just one file through the SSI parser?