Re: Fixing topic links

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Fri, 3 Dec 2004, Calum Benson wrote:
>> Do you have a .htaccess file?
>
> Yes:

<snip>


>>   What url re-writing are you doing?
>
> I'm doing nothing over and above the default config AFAIK... how would I 
> check...?

Ok.  Your blog script is "blog".  So all your pyblosxom urls are off of 
that.  When you don't have "blog" in the url, Apache tries to look for 
directories like "gnome.org" in your web root instead of passing it to 
pyblosxom.  (Mildly terribly worded explanation, but my mind is still 
foggy this morning.)

Right, anyhow, what you need to do is add "blog" to the end of the 
base_url variable in your config.py file.

So you probably have something like this in your config.py file:

    py["base_url"] = "http://www.gnome.org/~calum/"

change it to:

    py["base_url"] = "http://www.gnome.org/~calum/blog/"

You won't have to change the story.html files at all.  After changing the 
config.py file, your title links should end up as:

    http://www.gnome.org/~calum/blog/gnome.org/2004-12/2004-12-01@1200

And if you go to that url, it brings up "Blast from the Past".

Hope that helps--
/will


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.