Problem with static-pages after permalink-structure change.

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Hokey
Regular
Posts: 141
Joined: Wed Dec 14, 2005 3:36 pm
Location: Germany
Contact:

Problem with static-pages after permalink-structure change.

Post by Hokey »

Hi out there,

I changed the permalink-structure of my blog. Now I've got following problems:

Static pages
I can't reach my static pages. E.g. if you click on "R.I.P." in my blog then you just get the normal blog page instead of the static-page although the adress in the browser-navigation is correct.

Pictures
Second pictures aren't shown correctly. As you can see here the picture is shown in the preview but not in the extended article. Further when you click the pictures for a larger version the output of the lightbox-plugin shows the front-page of the blog and not the picture.

Maybe someone has a solution for this?
Thx,
Hokey
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with static-pages after permalink-structure chan

Post by garvinhicking »

Hi!

It would be important to know what exactly you changed.

If you enabled URL Rewriting, then the old "index.php?/..." links might no longer work, and you would need to use http://blog.blokey.de/pages/friedhof.html instead (and edit the staticpage for that new link).

Plus, you need to make sure that you don't have overlapping links, like you can't rename your "archives" permalikn to "pages" and still use "pages" for staticpages.

Your picture issue comes because you linked the image relatively. In your HTML code you use:

Code: Select all

<img src="uploads/koma.serendipityThumb.jpg" 
but you must use

Code: Select all

<img src="/uploads/koma.serendipityThumb.jpg" 
instead. Note the prepended slash.

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/
Hokey
Regular
Posts: 141
Joined: Wed Dec 14, 2005 3:36 pm
Location: Germany
Contact:

Post by Hokey »

Thank you Garvin! That helped, although I now have to add the slash to all broken image links... :? :wink:
Post Reply