<< April 2005 >>
SunMonTueWedThuFriSat
 
1
2
34
5
6
789
10
11
12
13
14
15
16
17
18
19
20
21
22
23
242526
27
28
29
30
+ all -

Excuse me, are you lost? Perhaps you would care to visit the site map

timshel.

Composition

Would you like to comment on this entry?

"Everything counts a little more than we think..."

26 April 2005 Tuesday

RewriteRule ^$ index.html [L]

slated in site-building at 5:09 am

ie. allowing index.html despite textpattern’s obsession with index.php

thank you Andrew (aka ‘birthday boy’) for the line:
RewriteRule ^$ index.html [L]

making my .htaccess file:
RewriteEngine On
# line with [L] is specifically for construction
RewriteRule ^$ index.html [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]

RewriteRule ^(.*) index.php

the brilliance and use of this is that index.html is no longer trumped by the index.php which is core to textpattern… so i can have my placeholder active in index.html, and still have my textpattern site/index.php running along happily.

Subscribe to XML comments feed for this article

If you don't have one (and would like one), get a Gravatar.

Add your comment here:

*Must click Preview first, and your comment will NOT go through until
you hit SUBMIT after previewing. (It's a spam-prevention thing.)
From here you may like to visit the archive, go home,
or page through other journal entries: