Page is a not externally linkable
bouncybunny - 8:51 am on Jan 23, 2010 (gmt 0)
I created a new MIME type text/html and called the extension .ttt Then I added the following to .htaccess. I'm hoping that this should only affect (i.e. remove the file extension) of files with a .ttt extension? RewriteCond %{REQUEST_filename} !-d I'm still finding that the trailing slash version of the URL is loading the page, as does the .ttt version. But I can always 301 redirect that, which is a pain, but there's only a few dozen pages. Does anyone see anything horrible in what I've done, or suggest any better options?
OK. This is what I have done. But I'm not sure that this was the best option, so be interested in any views.
RewriteCond %{REQUEST_filename} !-f
rewriterule ^(([^/]+/)*[^./]+)/?$ /$1.ttt [L]