Page 1 of 1

Bug or feature? Can't url-rewrite to serendiptity subdir

Posted: Sun Mar 26, 2006 8:52 pm
by aerik
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

Re: Bug or feature? Can't url-rewrite to serendiptity subdi

Posted: Sun Mar 26, 2006 9:41 pm
by garvinhicking
This kind of setup is not suggested, you'll run into many problems. You should either redirect to your /blog/ subdirectory with a simple HTTP redirectio, or install serendipity into your root directory.

Leaving out the /blog/ subdirectory and operating s9y on the root is not recommended, as you can see by it not working properly. :)

Regards,
Garvin