I'm trying to keep serendipity installed in a subdirectory, but use it as a my home page (keep my root directory clean). I set up htacess like this:
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /blog/index.php?url=/blog/$1 [L,QSA]
and I also tried a rewrite rule of
Code: Select all
RewriteRule ^(.*)$ /blog/$1 [L,QSA]
and after some testing I can see that it is appending the subdirs to the url, but they are not picked up by serendipity. It looks like this is because it is using REQUEST_URI instead of picking up the querystring...? I was hoping someone could shed some light on this, and a possible solution, before I spend my Sunday deconstructing and hacking it (I'd rather leave the serendiptiy code vanilla, for ease of upgrades).
Thanks!
Aerik