Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature Request: More beautiful Blog URL's #102
That's right. but you never get the word "blog" and the number(s) gone.
With most blog engines the URL just looks like this:
Thinking this over this will be hard to do. The complications are:
Caching will fix some of this. But needs to be well thought out before proceeding.
This is done and ready for 5.3.3!
URLs of the form blog/A-Very-Nice-Blog-Post or blog/subblog/A-Very-Nice-Blog-Post are now supported
For this also, the old blog id url works too. So there is an extra URL format that also works
If the url prefix changes (eg to recipes, then the route is something like recipes/A-Pizza). The page loaded is recipes instead of blog in that case.
The idea is to have the new route for testing to see if it's a good fit. The route for this is handled differently from the others in dispatch.php, so its easier to add new ones.
If the dispatcher/router works well enough then the old blog URL rewrites in the .htaccess file could be removed. That would simplify the install too.