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

Found a bug? Tell us!!
Post Reply
aerik
Posts: 1
Joined: Thu Feb 10, 2005 9:15 pm
Contact:

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

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply