Page 1 of 1

Permalinks screwup

Posted: Wed Nov 22, 2006 2:31 pm
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,

Re: Permalinks screwup

Posted: Wed Nov 22, 2006 3:24 pm
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

Posted: Wed Nov 22, 2006 4:20 pm
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,