htaccess DirectoryIndex setting can cause problems

Having trouble installing serendipity?
Post Reply
dand
Regular
Posts: 18
Joined: Wed Sep 17, 2003 4:23 am
Contact:

htaccess DirectoryIndex setting can cause problems

Post by dand »

This is more of a feature suggestion than a support request:

I recently did a fresh, "easy" install. At the time my domain name wasn't pointing to my freepgs.com account, so the installation was in a subdirectory (i.e. http://freepgs.com/danieldickison/blog/) even though eventually the blog would be hosted at http://danieldickison.com/blog/. The htaccess file has
DirectoryIndex /danieldickison/blog/index.php
which breaks once you start using the domain name without the /danieldickison subdirectory. I thought that using
DirectoryIndex index.php
would be sufficient, and would avoid this problem for new users.

Daniel
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: htaccess DirectoryIndex setting can cause problems

Post by garvinhicking »

Actually this directive won't work for directoryIndex redirection if you use /archives or other URLs...

Serendipity can only work with one path setup. You can use different VHosts pointing to the same directory, but when the paths change in your URI, this is not supported by Serendipity...

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