Wrong links after installation

Having trouble installing serendipity?
Post Reply
Magnus Larsson
Posts: 4
Joined: Sun Feb 20, 2005 9:38 am

Wrong links after installation

Post by Magnus Larsson »

Hello www.s9y.org/forums,

I have a working 0.7.1 installation on my apache server.
I can post, edit and manage the blog.

However, some blog links set up after initial installation takes me back to the /sernedipity directory rather than the /sernedipity/index.php blog file. The browser will then (correctly) show the directory listing of /sernedipity/ rather than the blog itself. I can get back to the blog by clicking on index.php.

In particular:
The Serendipity Authoring Suite-> Back to Weblog takes me back to http://213.114.172.246/serendipity/ directory listing instead of http://213.114.172.246/serendipity/index.php blog.

The Blog Title link "Magnus Larsson's personal blog" also points to http://213.114.172.246/serendipity/ directory instead of http://213.114.172.246/serendipity/index.php blog.

How shall I configure Serendipity to get the "Back to Weblog" and
"Magnus Larsson's personal blog" links to point to the blog iself?

Please find the paths section of the configuration attached below:

+/- Paths
Full path /srv/www/htdocs/serendipity/
Upload path uploads/
Relative path /serendipity/
Relative template path templates/
Relative upload path uploads/
URL to blog http://213.114.172.246/serendipity/
Index file index.php

I have "disable URL rewriting" selected.

My system: uname -a
Linux lfs 2.6.10 #1 Sat Jan 15 08:40:36 CET 2005 i686 athlon i386 GNU/Linux

Best regards,

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

Re: Wrong links after installation

Post by garvinhicking »

This is more a misconfiguration of your webserver. It's VirtualHost "DirectoryIndex" directive should contain "index.php" and "index.html" and the likes and not allow DirectoryListings. If you enable AllowOverride for your VirtualHost in httpd.conf, the .htaccess inside the Serendipity folder would set "DirectoryIndex" to the proper filename.

If that is too much geek talk for you, please forward it to the Administrator of your Webserver. :-)

HTH,
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/
Magnus Larsson
Posts: 4
Joined: Sun Feb 20, 2005 9:38 am

Re: Wrong links after installation

Post by Magnus Larsson »

Hello Garvin,

I found your advice very helpful.

I added index.php to the DirectoryIndex list as per suggestion and that solved the problem.

Thank you.

Best regards,

Magnus Larsson
Post Reply