toto icon indicating copy to clipboard operation
toto copied to clipboard

Added url suffix option

Open shameerc opened this issue 13 years ago • 6 comments

When I tried to port my wordpress blog to toto, the url format became a problem for me, where all my urls ended with .html and toto (as I believed) didn't support custom urls. So I changed the path in such a way that it can have any extensions

note

Added additional property for url suffix in config class.

shameerc avatar Oct 18 '11 09:10 shameerc

why not use 301 redirections instead?

ixti avatar Oct 31 '11 00:10 ixti

ofcourse that will do. what I sould suggest is to have bit more flexible url, to support the url scheme of user's choice. Does that make sense ?

shameerc avatar Oct 31 '11 03:10 shameerc

I agree, flexible url scheme is a good idea.

ixti avatar Oct 31 '11 03:10 ixti

I was thinking of adding the whole url pattern in config instead of just parts of it, so that we can have url of any kind and other blogs can be ported to toto without any problem.

shameerc avatar Oct 31 '11 04:10 shameerc

yes. I believe it should be possible to allow specify segments like /:year/:month/:day/:slug.html the only problem in "moving" from other blogging software is that basically each post in toto is identified exactly by date and slug, so you don't have as much falexibility as you might want to have :))

ixti avatar Oct 31 '11 04:10 ixti

I see. In my case the url scheme was /:year/:month/:slug.html and I made it possible by just changing the file name :). anyway I should appreciate the way it is now

shameerc avatar Oct 31 '11 04:10 shameerc