Page is a not externally linkable
- Hardware and OS Related Technologies
-- Website Technology Issues
---- Static HTML Pages Without File Name Extensions


bouncybunny - 8:51 am on Jan 23, 2010 (gmt 0)


OK. This is what I have done. But I'm not sure that this was the best option, so be interested in any views.

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
RewriteCond %{REQUEST_filename} !-f
rewriterule ^(([^/]+/)*[^./]+)/?$ /$1.ttt [L]

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?


Thread source:: http://www.webmasterworld.com/website_technology/4066191.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com