url to blog / relative path not working quite as well

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
periferral

url to blog / relative path not working quite as well

Post by periferral »

Hi All
I installed serendity and everything seems to work great. I am running into 1 issue however. I don't want my link to my blog to be
www.periferral.com/serendipity
Instead I want it to something like www.periferral.com/blog

Currently I have it as
Full path /var/www/html/serendipity/
Upload path uploads/
Relative path /serendipity/
Relative template path templates/
Relative upload path uploads/
URL to blog http://www.periferral.com/serendipity/
Autodetect used HTTP-Host Yes
Index file index.php

If I use these settings everything works fine.
However, when I change relative path to /blog/ then all my images are lost and i see only text based version of the admin and blog page.
just changing URL to blog to http://www.periferral.com/blog cause some dead links.

I can get it into that state if you like and show it to you.

Please help. Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: url to blog / relative path not working quite as well

Post by garvinhicking »

You need to rename your directory from "serendipity" to "blog"; then you can (must) change the Path settings to containg "blog" instead of the old "serendipity", and everything will work.

The configuration actually does not tell Serendipity where it should install itself, but rather the path needs to reflect where Serendipity IS installed.

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/
Dinges
Regular
Posts: 14
Joined: Fri Aug 12, 2005 3:33 pm

Post by Dinges »

rewriterules are also handy:

RewriteEngine On
RewriteRule ^blog/$ /serendipity/ [L]
RewriteRule ^blog/(.*) /serendipity/$1 [L]

put it in the document root and change serendipity settings, but you should change [L] to [L,QSA] in case you do not use mod_rewrite.
Post Reply