Permalinks screwup

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Nim
Posts: 2
Joined: Thu Nov 02, 2006 12:10 am
Contact:

Permalinks screwup

Post by Nim »

Guys, if anyone can shed some light on this would be great. I decided a little while ago to change the Permalink formation for my blog site,

From: archives/%id%-%title%.html
To: archives/%year%/%monthnum%/%day%/%title%.html

From: authors/%id%-%realname%
To: authors/%realname%

From: categories/%id%-%name%
To: categories/%name%

From: feeds/categories/%id%-%name%.rss
To: feeds/categories/%name%.rss

From: feeds/authors/%id%-%realname%.rss
To: feeds/authors/%realname%.rss

Now the second I clicked on save configuration, - my site collapsed. I get an error 500 immediately.

Is there any way I can fix this, - edit a php file to reflect the old formation of permalinks, - change perhaps my .htaccess to reflect the old formation. Anything I can do that won't have me re-installing my site??

Please help if you have a solution,

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

Re: Permalinks screwup

Post by garvinhicking »

Hi!

If your site dies with a 500 error this means that your .htaccess is invalid.

I suppose because you used %monthnum% - this is not a valid variable, you would have needed to use %month% instead. Please delete your .htaccess file, go into the s9y configuration and then resave your configuration again - that should rebuild your .htaccess again.

Note that with your way of removing %id% from your URL that the URL lookups from your blog will perform slower, and one additional SQL query per page request will be performed.

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/
Nim
Posts: 2
Joined: Thu Nov 02, 2006 12:10 am
Contact:

Post by Nim »

Thanks heaps mate, - it worked perfectly now. Guess the problem is with my hosting company, it's not allowing the mod_rewrite - once I sort that out, I'll be able to add year, month and day - I'll keep the id for performance, thanks for the note on that.

Cheers,
Post Reply