3 ms·
No, e.g. I use this rule in my .htaccess on my blog: RewriteEngine On RewriteCond %{REQUEST_URI} !^.*\.html$ RewriteCond %{REQUEST_FILENAME} !-f Rewrit
by tych0 13y ago
No, e.g. I use this rule in my .htaccess on my blog:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^.*\.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ %{REQUEST_FILENAME}.html
Which means you can access:
http://tycho.ws/music http://tycho.ws/music or
http://tycho.ws/music.html http://tycho.ws/music.html
- chris_mahan 13y agook, so where's the .html file for that page?
- chris_mahan 13y agoI went to http://www.canonical.com/index.html http://www.canonical.com/index.html and there was a 404. Surely there should be something there...
- chris_mahan 13y agoThere's also no robots.txt... Odd for a static site don't you think?
- tych0 13y agoI suppose it isn't obvious from the rule I gave, but it doesn't necessarily have to even be web accessible. Why does it matter so much anyway?