Skip to content

Added url suffix option #102

Open
shameerc wants to merge 10 commits into
cloudhead:masterfrom
shameerc:master
Open

Added url suffix option #102
shameerc wants to merge 10 commits into
cloudhead:masterfrom
shameerc:master

Conversation

@shameerc

Copy link
Copy Markdown

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.

@ixti

ixti commented Oct 31, 2011

Copy link
Copy Markdown

why not use 301 redirections instead?

@shameerc

Copy link
Copy Markdown
Author

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 ?

@ixti

ixti commented Oct 31, 2011

Copy link
Copy Markdown

I agree, flexible url scheme is a good idea.

@shameerc

Copy link
Copy Markdown
Author

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.

@ixti

ixti commented Oct 31, 2011

Copy link
Copy Markdown

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 :))

@shameerc

Copy link
Copy Markdown
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants